From 37da677cc88f00dba77c379f64bf56ea49a445c7 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 24 Jan 2023 15:25:06 +0900 Subject: [PATCH] numeric.c (mrb_int_pow): avoid unnecessary calls to mrb_get_args() --- src/numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/numeric.c b/src/numeric.c index a671eeba7..6963b8f20 100644 --- a/src/numeric.c +++ b/src/numeric.c @@ -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