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 | 35c4b470b41754e213405845050235df59dd6849 (patch) | |
tree | 9e6ff62bd51975256a799fa7b1badd434ba8339a /bignum.c | |
parent | f529864ffb0781b74ecb298fab1c694d5d242422 (diff) | |
download | ruby-35c4b470b41754e213405845050235df59dd6849.tar.gz ruby-35c4b470b41754e213405845050235df59dd6849.tar.xz ruby-35c4b470b41754e213405845050235df59dd6849.zip |
* bignum.c (rb_big_hash): fix hash area.
git-svn-id: http://svn.ruby-lang.org/repos/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); } |