summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-27 06:17:02 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-27 06:17:02 +0000
commit88960eb7070d9f5c34a84f57a005c9d5602ed229 (patch)
tree919187b81877bb10196dce9a001d8e88a9aa8b95 /ext
parent0d78333b8ef6f5c5dc22488ca89e19ca7377d7aa (diff)
merge revision(s) 19593:
* ext/socket/socket.c (host_str): numeric address should be unsigned. [ruby-core:18971] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@21796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index d037be02c7..5b0c7049df 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;