From e5bddf6a7e7bf70ea9a8f630f3218edf0a0759c7 Mon Sep 17 00:00:00 2001 From: "kevin.larke" Date: Thu, 16 Apr 2020 11:11:09 -0400 Subject: [PATCH] cwTcpSocket.cpp : Fixed signed/unsigned compare. --- cwTcpSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cwTcpSocket.cpp b/cwTcpSocket.cpp index be6d4db..0316d09 100644 --- a/cwTcpSocket.cpp +++ b/cwTcpSocket.cpp @@ -625,7 +625,7 @@ cw::rc_t cw::net::socket::select_receive(handle_t h, char* buf, unsigned bufByte else { // check for overflow - if( retByteCnt == bufByteCnt ) + if( retByteCnt == (ssize_t)bufByteCnt ) rc = cwLogError(kBufTooSmallRC,"The receive buffer requires more than %i bytes.",bufByteCnt); if( recvByteCntRef != nullptr )