summaryrefslogtreecommitdiffstats
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-28 11:41:25 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-28 11:41:25 +0000
commit04ec105bf6f24a5d9825d45409550f765a6beb87 (patch)
treecc90c35ac9ad4238ab6d7a8099c3d5a815dd9272 /bignum.c
parent50cbe043bc37605141bc9e71c14a471de00338c3 (diff)
downloadruby-04ec105bf6f24a5d9825d45409550f765a6beb87.tar.gz
ruby-04ec105bf6f24a5d9825d45409550f765a6beb87.tar.xz
ruby-04ec105bf6f24a5d9825d45409550f765a6beb87.zip
refine previous change.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12649 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 d62dc2ffc..d7ba14174 100644
--- a/bignum.c
+++ b/bignum.c
@@ -2029,7 +2029,7 @@ rb_big_hash(VALUE x)
{
int hash;
- hash = rb_memhash(BDIGITS(x), sizeof(*BDIGITS(x))*RBIGNUM(x)->len) ^ RBIGNUM(x)->sign;
+ hash = rb_memhash(BDIGITS(x), sizeof(BDIGIT)*RBIGNUM(x)->len) ^ RBIGNUM(x)->sign;
return INT2FIX(hash);
}