diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 6dc4f832ac..491823ad44 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -840,7 +840,7 @@ host_str(host, hbuf, len) return NULL; } else if (rb_obj_is_kind_of(host, rb_cInteger)) { - long i = NUM2LONG(host); + unsigned long i = NUM2ULONG(host); make_inetaddr(htonl(i), hbuf, len); return hbuf; |