summaryrefslogtreecommitdiff
path: root/src/socket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket.cpp')
-rw-r--r--src/socket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index e43055260..21e7eff3d 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -214,7 +214,7 @@ char* InspSocket::Read()
if ((fd < 0) || (fd > MAX_DESCRIPTORS))
return NULL;
int n = recv(this->fd,this->ibuf,sizeof(this->ibuf),0);
- if ((n > 0) && (n <= sizeof(this->ibuf)))
+ if ((n > 0) && (n <= (int)sizeof(this->ibuf)))
{
ibuf[n] = 0;
return ibuf;