diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-21 00:24:44 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-03-21 00:24:44 +0000 |
commit | 82488cf2b9def045e7c9bbda6b1fe43eca174d47 (patch) | |
tree | 3d8e4efdd703d4200bf85d4c9f45c061e0512ed2 /object.c | |
parent | d0fa628d062b10a2befcfd48b33cdfd677f29241 (diff) | |
download | ruby-82488cf2b9def045e7c9bbda6b1fe43eca174d47.tar.gz |
* object.c (rb_obj_hash): use LONG2FIX to avoid Bignum allocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -101,7 +101,7 @@ rb_obj_hash(VALUE obj) { VALUE oid = rb_obj_id(obj); st_index_t h = rb_hash_end(rb_hash_start(NUM2LONG(oid))); - return LONG2NUM(h); + return LONG2FIX(h); } /* |