array.c (ary_check_too_big): make the function inline.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-06-30 09:57:30 +09:00
parent 72b60eb449
commit e2c4a8cef0
+1 -1
View File
@@ -25,7 +25,7 @@ ary_too_big(mrb_state *mrb)
mrb_raise(mrb, E_ARGUMENT_ERROR, "array size too big");
}
static void
static inline void
ary_check_too_big(mrb_state *mrb, mrb_int a, mrb_int b)
{
if (a > ARY_MAX_SIZE - b || a < 0)