aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/object.c b/object.c
index b9333f75d8..0a764cc75f 100644
--- a/object.c
+++ b/object.c
@@ -893,8 +893,8 @@ rb_Integer(val)
case T_STRING:
return rb_str2inum(val, 0);
- case T_NIL:
- return INT2FIX(0);
+ case T_FIXNUM:
+ return val;
default:
break;