diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-28 09:59:47 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-28 09:59:47 +0000 |
commit | 8253094f39f3daf6745bb6271816039b93a2afd1 (patch) | |
tree | 9e6ff62bd51975256a799fa7b1badd434ba8339a /bignum.c | |
parent | a0aa5f977e6644f1cb9803a8c08b866623ed8227 (diff) | |
download | ruby-8253094f39f3daf6745bb6271816039b93a2afd1.tar.gz |
* bignum.c (rb_big_hash): fix hash area.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2029,7 +2029,7 @@ rb_big_hash(VALUE x) { int hash; - hash = rb_memhash(BDIGITS(x), BITSPERDIG*RBIGNUM(x)->len) ^ RBIGNUM(x)->sign; + hash = rb_memhash(BDIGITS(x), sizeof(*BDIGITS(x))*RBIGNUM(x)->len) ^ RBIGNUM(x)->sign; return INT2FIX(hash); } |