summaryrefslogtreecommitdiff
path: root/src/game-server
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-03 00:22:55 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2011-04-03 00:22:55 +0200
commitbb5f303ff8821ece4e77a92ee41791b652afbd69 (patch)
tree9cbce7e49a9dd66d6b3ffe3477e3bba60573ad32 /src/game-server
parent0fceeeb5e9546211f12915b187ce74cd546012e9 (diff)
downloadmanaserv-bb5f303ff8821ece4e77a92ee41791b652afbd69.tar.gz
manaserv-bb5f303ff8821ece4e77a92ee41791b652afbd69.tar.bz2
manaserv-bb5f303ff8821ece4e77a92ee41791b652afbd69.tar.xz
manaserv-bb5f303ff8821ece4e77a92ee41791b652afbd69.zip
Changed SYNC_BUFFER_SIZE to unsigned to avoid compiler warning
It's being compared to an unsigned integer. Reported-by: Stefan Dombrowski
Diffstat (limited to 'src/game-server')
-rw-r--r--src/game-server/accountconnection.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/game-server/accountconnection.cpp b/src/game-server/accountconnection.cpp
index 5f0e55ae..927b5c15 100644
--- a/src/game-server/accountconnection.cpp
+++ b/src/game-server/accountconnection.cpp
@@ -36,8 +36,11 @@
#include "utils/tokendispenser.h"
#include "utils/tokencollector.h"
-const int SYNC_BUFFER_SIZE = 1024; /**< maximum size of sync buffer in bytes. */
-const int SYNC_BUFFER_LIMIT = 20; /**< maximum number of messages in sync buffer. */
+/** Maximum size of sync buffer in bytes. */
+const unsigned SYNC_BUFFER_SIZE = 1024;
+
+/** Maximum number of messages in sync buffer. */
+const int SYNC_BUFFER_LIMIT = 20;
AccountConnection::AccountConnection():
mSyncBuffer(0),