fix bigint on raspberry pi

this fixes an issue where base can be out of range on a raspberry pi.
This commit is contained in:
Hendrik
2025-08-10 09:21:38 +02:00
committed by Chris Reuter
parent d4097716b3
commit 651a183228
+1 -1
View File
@@ -1457,7 +1457,7 @@ RETRY_TRY_BLOCK:
#ifdef MRB_USE_BIGINT
{
const char *s = irep->pool[b].u.str;
regs[a] = mrb_bint_new_str(mrb, s+2, (uint8_t)s[0], s[1]);
regs[a] = mrb_bint_new_str(mrb, s+2, (uint8_t)s[0], (int8_t)s[1]);
}
break;
#else