summaryrefslogtreecommitdiff
path: root/ext/socket/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/socket.c')
-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