diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-30 20:41:25 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-04-30 20:41:25 -0700 |
commit | 105e1a016f5a4a5a6c2ed51bceb33e4f684a135f (patch) | |
tree | 09f4824afedd8ed8c20cd479b824a988b5b57119 /service/OneService.cpp | |
parent | 604576075efe5927a9f034e58383fb9e80e78d21 (diff) | |
download | infinitytier-105e1a016f5a4a5a6c2ed51bceb33e4f684a135f.tar.gz infinitytier-105e1a016f5a4a5a6c2ed51bceb33e4f684a135f.zip |
Get rid of G++ compiler warning.
Diffstat (limited to 'service/OneService.cpp')
-rw-r--r-- | service/OneService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 3886c157..421b47dd 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -508,7 +508,7 @@ public: long sent = _phy.tcpSend(sock,tc->writeBuf.data(),tc->writeBuf.length(),true); if (sent > 0) { tc->lastActivity = OSUtils::now(); - if (sent == tc->writeBuf.length()) { + if ((unsigned long)sent == (unsigned long)tc->writeBuf.length()) { tc->writeBuf = ""; _phy.tcpSetNotifyWritable(sock,false); if (!tc->shouldKeepAlive) |