1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (rb_big_and): Allocate new bignum with same size to shorter

argument if it's high bits are zero.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-06-28 03:35:39 +00:00
parent a5fcce2820
commit b83b33eef0
2 changed files with 8 additions and 0 deletions

View file

@ -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

View file

@ -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);