From 61f1657f68b9cddf8956380e53b8e7053eeb30c8 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Fri, 1 Sep 2023 13:36:15 +0900 Subject: Use macro argument not the variable directly --- iseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index 4466de8bd1..7d64177e99 100644 --- a/iseq.c +++ b/iseq.c @@ -730,7 +730,7 @@ set_compile_option_from_hash(rb_compile_option_t *option, VALUE opt) else if (flag == Qfalse) { (o)->mem = 0; } \ } #define SET_COMPILE_OPTION_NUM(o, h, mem) \ - { VALUE num = rb_hash_aref(opt, ID2SYM(rb_intern(#mem))); \ + { VALUE num = rb_hash_aref((h), ID2SYM(rb_intern(#mem))); \ if (!NIL_P(num)) (o)->mem = NUM2INT(num); \ } SET_COMPILE_OPTION(option, opt, inline_const_cache); -- cgit v1.2.3