From 105e1a016f5a4a5a6c2ed51bceb33e4f684a135f Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 30 Apr 2015 20:41:25 -0700 Subject: [PATCH] Get rid of G++ compiler warning. --- service/OneService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/OneService.cpp b/service/OneService.cpp index 3886c1573..421b47ddf 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)