diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-23 10:09:25 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-06-23 10:09:25 +0900 |
commit | fd7023a87e73abf2ef531a1a6b0c0645887ec841 (patch) | |
tree | 9c748ebb156c1007faded681b96829dd26e4460c /ext | |
parent | 3b615f4353aa43016c79fd7f44b1f918ddd6e54c (diff) | |
download | ruby-fd7023a87e73abf2ef531a1a6b0c0645887ec841.tar.gz |
Convert ssize_t properly
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/udpsocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/udpsocket.c b/ext/socket/udpsocket.c index 94ea19c224..2bfd7c8560 100644 --- a/ext/socket/udpsocket.c +++ b/ext/socket/udpsocket.c @@ -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; |