From e2c4a8cef093849aae109d7048ff242f6c2d7dcf Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 30 Jun 2022 09:57:30 +0900 Subject: [PATCH] array.c (ary_check_too_big): make the function inline. --- src/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/array.c b/src/array.c index 6d096a61d..548416250 100644 --- a/src/array.c +++ b/src/array.c @@ -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)