diff options
| author | 2006-02-14 20:22:43 +0000 | |
|---|---|---|
| committer | 2006-02-14 20:22:43 +0000 | |
| commit | 3d82a9502730b2e473d6eecb598d5d0e544daeff (patch) | |
| tree | a76ac267531e101141f713338ce7197fceadbe17 /src/socket.cpp | |
| parent | Force initialization of fd to -1 (diff) | |
Fix to compare against signed/unsigned warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3200 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/socket.cpp')
| -rw-r--r-- | src/socket.cpp | 2 |
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; |
