summaryrefslogtreecommitdiff
path: root/ext/sockets/php_sockets_win.c
diff options
context:
space:
mode:
authorDaniel Beulshausen <dbeu@php.net>2001-11-01 20:10:17 +0000
committerDaniel Beulshausen <dbeu@php.net>2001-11-01 20:10:17 +0000
commit54ca6f05b11f40dc5e9694dc26254d3a8448eb8c (patch)
treeb7044a3632c7a2addca321e8e2d5e1db11265bf4 /ext/sockets/php_sockets_win.c
parentd0433b6d1c0346eb82bbc1da53f48a2af08ba006 (diff)
downloadphp-git-54ca6f05b11f40dc5e9694dc26254d3a8448eb8c.tar.gz
nuke remaining warnings
Diffstat (limited to 'ext/sockets/php_sockets_win.c')
-rw-r--r--ext/sockets/php_sockets_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/sockets/php_sockets_win.c b/ext/sockets/php_sockets_win.c
index f352ac4b5c..58ba1c6c23 100644
--- a/ext/sockets/php_sockets_win.c
+++ b/ext/sockets/php_sockets_win.c
@@ -52,7 +52,7 @@ ssize_t readv(SOCKET sock, const struct iovec *iov, int iovcnt) {
remain = bytes = (size_t) retval;
for(i=0; i<iovcnt; i++) {
- len = (iov[i].iov_len < remain) ? iov[i].iov_len : remain;
+ len = ((unsigned int)iov[i].iov_len < remain) ? iov[i].iov_len : remain;
memcpy(iov[i].iov_base, buffer+pos, len);
pos += len;
remain -= len;