summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-22 17:50:00 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-22 17:50:00 -0700
commit2a3dd53952606baf7e3cf76793ba151feeca371d (patch)
tree138d07dbfa51768cf792559c4ca1cd0a038e64ce
parentdee6e7e3c17643f924796bd87d300f36e39aed0a (diff)
downloadinfinitytier-2a3dd53952606baf7e3cf76793ba151feeca371d.tar.gz
infinitytier-2a3dd53952606baf7e3cf76793ba151feeca371d.zip
.
-rw-r--r--service/ClusterGeoIpService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/ClusterGeoIpService.cpp b/service/ClusterGeoIpService.cpp
index 90b0e3e6..b47a9b2a 100644
--- a/service/ClusterGeoIpService.cpp
+++ b/service/ClusterGeoIpService.cpp
@@ -148,7 +148,7 @@ void ClusterGeoIpService::threadMain()
else break;
}
for(long i=0;i<n;++i) {
- if (lineptr > sizeof(linebuf))
+ if (lineptr > (long)sizeof(linebuf))
lineptr = 0;
if ((buf[i] == '\n')||(buf[i] == '\r')) {
linebuf[lineptr] = (char)0;