From c4a0a17df12c2bcc3777a846765982e94c2cc3bd Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 28 Jun 2007 11:41:25 +0000 Subject: [PATCH] refine previous change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bignum.c b/bignum.c index d62dc2ffc6..d7ba14174c 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); }