mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
bigint.c: update the error message for too big integers.
This commit is contained in:
+1
-1
@@ -1086,7 +1086,7 @@ mrb_bint_as_int(mrb_state *mrb, mrb_value x)
|
||||
mrb_int i;
|
||||
|
||||
if (!mpz_get_int(&b->mp, &i)) {
|
||||
mrb_raise(mrb, E_RANGE_ERROR, "integer overflow");
|
||||
mrb_raise(mrb, E_RANGE_ERROR, "integer too big");
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user