cwTcpSocket.cpp : Fixed signed/unsigned compare.
This commit is contained in:
parent
ef50816330
commit
e5bddf6a7e
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user