Browse Source

Get rid of G++ compiler warning.

Adam Ierymenko 10 years ago
parent
commit
105e1a016f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      service/OneService.cpp

+ 1 - 1
service/OneService.cpp

@@ -508,7 +508,7 @@ public:
 			long sent = _phy.tcpSend(sock,tc->writeBuf.data(),tc->writeBuf.length(),true);
 			long sent = _phy.tcpSend(sock,tc->writeBuf.data(),tc->writeBuf.length(),true);
 			if (sent > 0) {
 			if (sent > 0) {
 				tc->lastActivity = OSUtils::now();
 				tc->lastActivity = OSUtils::now();
-				if (sent == tc->writeBuf.length()) {
+				if ((unsigned long)sent == (unsigned long)tc->writeBuf.length()) {
 					tc->writeBuf = "";
 					tc->writeBuf = "";
 					_phy.tcpSetNotifyWritable(sock,false);
 					_phy.tcpSetNotifyWritable(sock,false);
 					if (!tc->shouldKeepAlive)
 					if (!tc->shouldKeepAlive)