mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
numeric.c (int_to_s): should not bypass base range check.
This commit is contained in:
@@ -1805,11 +1805,6 @@ int_to_s(mrb_state *mrb, mrb_value self)
|
||||
mrb_int base = 10;
|
||||
|
||||
mrb_get_args(mrb, "|i", &base);
|
||||
#ifdef MRB_USE_BIGINT
|
||||
if (mrb_bigint_p(self)) {
|
||||
return mrb_bint_to_s(mrb, self, base);
|
||||
}
|
||||
#endif
|
||||
return mrb_integer_to_str(mrb, self, base);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user