소스 검색

Get rid of G++ compiler warning.

Adam Ierymenko 10 년 전
부모
커밋
105e1a016f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
 			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)