diff options
-rw-r--r-- | service/ClusterGeoIpService.cpp | 2 |
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; |