From 82488cf2b9def045e7c9bbda6b1fe43eca174d47 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 21 Mar 2010 00:24:44 +0000 Subject: * 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 --- object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'object.c') diff --git a/object.c b/object.c index 0421824202..f473fe1e4f 100644 --- a/object.c +++ b/object.c @@ -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); } /* -- cgit v1.2.3