summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-29 07:46:56 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-29 07:46:56 +0000
commit11fef7fd630528ac1b6c55739cb1affb2208944c (patch)
tree5d1eae8d65818174f6f94d57880e625fdfacc48a /object.c
parent1e965f4f9a7ab6dc368ee256ed71fe6c2f2e62dc (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 b9333f7..0a764cc 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;