mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Convert ssize_t properly
This commit is contained in:
parent
3b615f4353
commit
fd7023a87e
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ udp_send_internal(VALUE v)
|
|||
|
||||
ssize_t n = (ssize_t)BLOCKING_REGION_FD(rsock_sendto_blocking, &arg->sarg);
|
||||
|
||||
if (n >= 0) return RB_INT2NUM(n);
|
||||
if (n >= 0) return RB_SSIZE2NUM(n);
|
||||
|
||||
if (rb_io_maybe_wait_writable(errno, fptr->self, Qnil)) {
|
||||
goto retry;
|
||||
|
|
Loading…
Reference in a new issue