Skip to content

Commit 46b28b7

Browse files
committed
Fix bigand_int edgecase returning false
1 parent 8522180 commit 46b28b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bignum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6346,7 +6346,7 @@ bigand_int(VALUE x, long xn, BDIGIT hibitsx, long y)
63466346
BDIGIT hibitsy;
63476347

63486348
if (y == 0) return INT2FIX(0);
6349-
if (xn == 0) return hibitsx ? LONG2NUM(y) : 0;
6349+
if (xn == 0) return hibitsx ? LONG2NUM(y) : INT2FIX(0);
63506350
hibitsy = 0 <= y ? 0 : BDIGMAX;
63516351
xds = BDIGITS(x);
63526352
#if SIZEOF_BDIGIT >= SIZEOF_LONG

0 commit comments

Comments
 (0)