diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | bignum.c | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Fri Jun 28 12:26:53 2013 Tanaka Akira <akr@fsij.org> + + * bignum.c (rb_big_and): Allocate new bignum with same size to shorter + argument if it's high bits are zero. + Fri Jun 28 12:14:04 2013 Tanaka Akira <akr@fsij.org> * ext/socket/ipsocket.c (init_inetsock_internal): Don't use local @@ -4747,6 +4747,9 @@ rb_big_and(VALUE x, VALUE y) hibits1 = hibitsx; hibits2 = hibitsy; + if (!hibits1) + l2 = l1; + z = bignew(l2, 0); zds = BDIGITS(z); |