mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e965f4f9a
commit
11fef7fd63
4 changed files with 24 additions and 16 deletions
4
object.c
4
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue