Use macro argument not the variable directly

This commit is contained in:
Nobuyoshi Nakada 2023-09-01 13:36:15 +09:00
parent 45cd011d73
commit 61f1657f68
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
Notes: git 2023-09-01 06:44:58 +00:00

2
iseq.c
View File

@ -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);