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:
parent
a5fcce2820
commit
b83b33eef0
2 changed files with 8 additions and 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>
|
Fri Jun 28 12:14:04 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/socket/ipsocket.c (init_inetsock_internal): Don't use local
|
* ext/socket/ipsocket.c (init_inetsock_internal): Don't use local
|
||||||
|
|
3
bignum.c
3
bignum.c
|
@ -4747,6 +4747,9 @@ rb_big_and(VALUE x, VALUE y)
|
||||||
hibits1 = hibitsx;
|
hibits1 = hibitsx;
|
||||||
hibits2 = hibitsy;
|
hibits2 = hibitsy;
|
||||||
|
|
||||||
|
if (!hibits1)
|
||||||
|
l2 = l1;
|
||||||
|
|
||||||
z = bignew(l2, 0);
|
z = bignew(l2, 0);
|
||||||
zds = BDIGITS(z);
|
zds = BDIGITS(z);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue