summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-09 12:53:14 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-09 12:53:14 +0000
commitab8a2c7c1f61cec4706058e6efe0a564e998c953 (patch)
tree092a8cbfde305d72bc67eea00ab0ed259745c466 /ext
parentf73dca932c1172d9add59c499b7e3c2ada00ea61 (diff)
* ext/socket/socket.c (sock_define_const): use INT2NUM.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index 825d230bfcf..fa95c5edcc2 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -4631,8 +4631,8 @@ sockaddr_string_value_ptr(volatile VALUE *v)
static void
sock_define_const(const char *name, int value, VALUE mConst)
{
- rb_define_const(rb_cSocket, name, INT2FIX(value));
- rb_define_const(mConst, name, INT2FIX(value));
+ rb_define_const(rb_cSocket, name, INT2NUM(value));
+ rb_define_const(mConst, name, INT2NUM(value));
}
static void