numeric.c (int_to_s): should not bypass base range check.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-07-12 14:48:36 +09:00
parent bae11ef689
commit 37c2f080f0
-5
View File
@@ -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);
}