aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treeserver.h
diff options
context:
space:
mode:
authorGravatar Dominic Hamon2021-05-30 20:37:54 +0100
committerGravatar GitHub2021-05-30 20:37:54 +0100
commit02340285c564a7e82105137192d46d554a6fce3a (patch)
tree696d1a6249841de62c3fed70310c2a347fc66732 /src/modules/m_spanningtree/treeserver.h
parentAdd a workaround for a bug in GitHub Actions. (diff)
Added -Wshorten-64-to-32 and fixed all warnings.
Diffstat (limited to 'src/modules/m_spanningtree/treeserver.h')
-rw-r--r--src/modules/m_spanningtree/treeserver.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree/treeserver.h b/src/modules/m_spanningtree/treeserver.h
index 8b09f3817..2ea983555 100644
--- a/src/modules/m_spanningtree/treeserver.h
+++ b/src/modules/m_spanningtree/treeserver.h
@@ -90,8 +90,8 @@ class TreeServer : public Server
FakeUser* const ServerUser; /* User representing this server */
const time_t age;
- unsigned int UserCount; /* How many users are on this server? [note: doesn't care about +i] */
- unsigned int OperCount = 0; /* How many opers are on this server? */
+ size_t UserCount; /* How many users are on this server? [note: doesn't care about +i] */
+ size_t OperCount = 0; /* How many opers are on this server? */
/** We use this constructor only to create the 'root' item, Utils->TreeRoot, which
* represents our own server. Therefore, it has no route, no parent, and
@@ -121,7 +121,7 @@ class TreeServer : public Server
GetParent()->SQuitChild(this, reason, error);
}
- static unsigned int QuitUsers(const std::string& reason);
+ static size_t QuitUsers(const std::string& reason);
/** Get route.
* The 'route' is defined as the locally-