From cfd76c732111821cedd98b682759054cecb774ca Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Tue, 20 Oct 2015 11:49:39 -0500 Subject: [PATCH] fix another warn --- .../application/SwgGameServer/src/shared/core/CSHandler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/game/server/application/SwgGameServer/src/shared/core/CSHandler.cpp b/game/server/application/SwgGameServer/src/shared/core/CSHandler.cpp index 6b1d615d..10376750 100644 --- a/game/server/application/SwgGameServer/src/shared/core/CSHandler.cpp +++ b/game/server/application/SwgGameServer/src/shared/core/CSHandler.cpp @@ -85,17 +85,17 @@ namespace CSHandlerNamespace unsigned pos; // where we stop looking unsigned lastpos; // the last character in our argument. // bounds checking. - if( position < 0 || position >= input.length() ) + if( position < 0 || position >= (int) input.length() ) { return ""; } // skip whitespace - while( input[ position ] == ' ' && position < input.length() ) + while( input[ position ] == ' ' && position < (int) input.length() ) { ++position; } - if( position == input.length() ) + if( position == (int) input.length() ) return ""; // see if the first character is a quote. if( input[ position ] == '"' )