diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-05 11:56:11 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-05 11:56:11 +0000 |
commit | 60a40ecaf65435c93ad24a4cbb5cd1779aeb2bda (patch) | |
tree | da638a676ad0e7365fa01ca822c3a320ac028921 /gc.c | |
parent | b7d63cbb85e028ab919fa581aee2a748a5f994ab (diff) |
* gc.c (rb_obj_id): a Fixnum which is beyond signed long
was converted to a Bignum in calculating its hash.
[ruby-dev:39637]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2142,7 +2142,7 @@ rb_obj_id(obj) return (SYM2ID(obj) * sizeof(RVALUE) + (4 << 2)) | FIXNUM_FLAG; } if (SPECIAL_CONST_P(obj)) { - return LONG2NUM((long)obj); + return LONG2FIX((long)obj); } return (VALUE)((long)obj|FIXNUM_FLAG); } |