Use macro argument not the variable directly
This commit is contained in:
parent
45cd011d73
commit
61f1657f68
Notes:
git
2023-09-01 06:44:58 +00:00
2
iseq.c
2
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user