numeric.c (mrb_int_pow): avoid unnecessary calls to mrb_get_args()

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-01-24 15:25:06 +09:00
parent d1449c2622
commit 37da677cc8
+1 -1
View File
@@ -66,7 +66,7 @@ mrb_int_pow(mrb_state *mrb, mrb_value x, mrb_value y)
else
#endif
{
mrb_get_args(mrb, "i", &exp);
exp = mrb_as_int(mrb, y);
}
if (exp < 0) {
#ifndef MRB_NO_FLOAT