mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
numeric.c (mrb_int_pow): avoid unnecessary calls to mrb_get_args()
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user