summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_spanningtree.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_spanningtree.cpp b/src/modules/m_spanningtree.cpp
index 03e543cd6..20c721419 100644
--- a/src/modules/m_spanningtree.cpp
+++ b/src/modules/m_spanningtree.cpp
@@ -2509,8 +2509,8 @@ class ModuleSpanningTree : public Module
std::vector<TreeSocket*> Bindings;
int line;
int NumServers;
- int max_local;
- int max_global;
+ unsigned int max_local;
+ unsigned int max_global;
cmd_rconnect* command_rconnect;
public:
@@ -2574,7 +2574,7 @@ class ModuleSpanningTree : public Module
void HandleLusers(char** parameters, int pcnt, userrec* user)
{
/* Only update these when someone wants to see them, more efficient */
- if (local_count() > max_local)
+ if ((unsigned int)local_count() > max_local)
max_local = local_count();
if (clientlist.size() > max_global)
max_global = clientlist.size();