cwTcpSocket.cpp : Fixed signed/unsigned compare.

This commit is contained in:
kevin.larke 2020-04-16 11:11:09 -04:00
parent ef50816330
commit e5bddf6a7e

View File

@ -625,7 +625,7 @@ cw::rc_t cw::net::socket::select_receive(handle_t h, char* buf, unsigned bufByte
else else
{ {
// check for overflow // check for overflow
if( retByteCnt == bufByteCnt ) if( retByteCnt == (ssize_t)bufByteCnt )
rc = cwLogError(kBufTooSmallRC,"The receive buffer requires more than %i bytes.",bufByteCnt); rc = cwLogError(kBufTooSmallRC,"The receive buffer requires more than %i bytes.",bufByteCnt);
if( recvByteCntRef != nullptr ) if( recvByteCntRef != nullptr )