diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bignum.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Jun 28 18:53:01 2007 Tanaka Akira <[email protected]> + + * bignum.c (rb_big_hash): fix hash area. + Thu Jun 28 15:00:06 2007 Nobuyoshi Nakada <[email protected]> * ext/stringio/stringio.c (strio_getline): local variable to be @@ -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); } |