summaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-28 09:59:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-28 09:59:47 +0000
commit35c4b470b41754e213405845050235df59dd6849 (patch)
tree9e6ff62bd51975256a799fa7b1badd434ba8339a /bignum.c
parentf529864ffb0781b74ecb298fab1c694d5d242422 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 138e33672..d62dc2ffc 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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);
}