mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix bigand_int edgecase returning false (#13987)
This commit is contained in:
parent
93be578691
commit
5e5cec1b86
1 changed files with 1 additions and 1 deletions
2
bignum.c
2
bignum.c
|
@ -6346,7 +6346,7 @@ bigand_int(VALUE x, long xn, BDIGIT hibitsx, long y)
|
|||
BDIGIT hibitsy;
|
||||
|
||||
if (y == 0) return INT2FIX(0);
|
||||
if (xn == 0) return hibitsx ? LONG2NUM(y) : 0;
|
||||
if (xn == 0) return hibitsx ? LONG2NUM(y) : INT2FIX(0);
|
||||
hibitsy = 0 <= y ? 0 : BDIGMAX;
|
||||
xds = BDIGITS(x);
|
||||
#if SIZEOF_BDIGIT >= SIZEOF_LONG
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue