From bb5f303ff8821ece4e77a92ee41791b652afbd69 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 3 Apr 2011 00:22:55 +0200 Subject: Changed SYNC_BUFFER_SIZE to unsigned to avoid compiler warning It's being compared to an unsigned integer. Reported-by: Stefan Dombrowski --- src/game-server/accountconnection.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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), -- cgit v1.2.3-70-g09d2