1
0
Fork 0
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:
Nobuyoshi Nakada 2021-06-23 10:09:25 +09:00
parent 3b615f4353
commit fd7023a87e
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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;