summaryrefslogtreecommitdiff
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
commit8253094f39f3daf6745bb6271816039b93a2afd1 (patch)
tree9e6ff62bd51975256a799fa7b1badd434ba8339a /bignum.c
parenta0aa5f977e6644f1cb9803a8c08b866623ed8227 (diff)
* 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 138e336724..d62dc2ffc6 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);
}