aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-09-01 13:36:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-09-01 13:36:15 +0900
commit61f1657f68b9cddf8956380e53b8e7053eeb30c8 (patch)
tree5288ba0834de5edcf508d4b0ce220e8147d99b8f /iseq.c
parent45cd011d73ed1fac195d828c0565e2cac57f65fc (diff)
downloadruby-61f1657f68b9cddf8956380e53b8e7053eeb30c8.tar.gz
Use macro argument not the variable directly
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
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);