* win32/win32.c (overlapped_socket_io): get rid of a warning of 64bit

mingw.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2010-11-09 04:30:15 +00:00
parent 3c18caa4c2
commit 63b0601792
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Tue Nov 9 13:29:36 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (overlapped_socket_io): get rid of a warning of 64bit
mingw.
Tue Nov 9 10:44:19 2010 NARUSE, Yui <naruse@ruby-lang.org> Tue Nov 9 10:44:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
* util.c (ruby_strtod): this code uses FPU's rounding system. * util.c (ruby_strtod): this code uses FPU's rounding system.

View File

@ -2935,6 +2935,7 @@ overlapped_socket_io(BOOL input, int fd, char *buf, int len, int flags,
} }
else { else {
DWORD size; DWORD size;
DWORD rlen;
wbuf.len = len; wbuf.len = len;
wbuf.buf = buf; wbuf.buf = buf;
memset(&wol, 0, sizeof(wol)); memset(&wol, 0, sizeof(wol));
@ -2957,7 +2958,8 @@ overlapped_socket_io(BOOL input, int fd, char *buf, int len, int flags,
} }
}); });
finish_overlapped_socket(s, &wol, ret, &r, size); finish_overlapped_socket(s, &wol, ret, &rlen, size);
r = (int)rlen;
} }
return r; return r;