vm.c: should cast bigint length to unsigned.
Otherwise length>127 would be considered as negative.
MODIFY
src/vm.c
src/vm.c
@@ -1357,7 +1357,7 @@ RETRY_TRY_BLOCK:
#ifdef MRB_USE_BIGINT
{
const char *s = pool[b].u.str;
- regs[a] = mrb_bint_new_str(mrb, s+2, (mrb_int)s[0], (mrb_int)s[1]);
+ regs[a] = mrb_bint_new_str(mrb, s+2, (uint8_t)s[0], s[1]);
}
break;
#else

vm.c: should cast bigint length to unsigned.

Otherwise length>127 would be considered as negative.