diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-09-01 13:36:15 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-09-01 13:36:15 +0900 |
commit | 61f1657f68b9cddf8956380e53b8e7053eeb30c8 (patch) | |
tree | 5288ba0834de5edcf508d4b0ce220e8147d99b8f /iseq.c | |
parent | 45cd011d73ed1fac195d828c0565e2cac57f65fc (diff) |
Use macro argument not the variable directly
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8349
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |