Fix bigand_int edgecase returning false (#13987)

This commit is contained in:
tomoya ishida 2025-07-24 02:12:12 +09:00 committed by GitHub
parent 93be578691
commit 5e5cec1b86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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