mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bignum.c (bigor_int): Return -1 if y == -1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f0454052f7
commit
c6cb7416d2
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Jun 29 09:33:53 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bigor_int): Return -1 if y == -1.
|
||||
|
||||
Sat Jun 29 09:07:16 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bigor_int): Use RB_GC_GUARD.
|
||||
|
|
2
bignum.c
2
bignum.c
|
@ -4774,7 +4774,7 @@ bigor_int(VALUE x, long xn, BDIGIT hibitsx, long y)
|
|||
long i;
|
||||
BDIGIT hibitsy;
|
||||
|
||||
if (y == -1) INT2FIX(-1);
|
||||
if (y == -1) return INT2FIX(-1);
|
||||
if (xn == 0) return hibitsx ? INT2FIX(-1) : LONG2FIX(y);
|
||||
hibitsy = 0 <= y ? 0 : BDIGMAX;
|
||||
xds = BDIGITS(x);
|
||||
|
|
Loading…
Add table
Reference in a new issue