diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-11-28 18:53:10 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-11-28 18:53:10 +0900 |
commit | b8f248ee5a38b1123a8dac6e8895640e64504ea7 (patch) | |
tree | 86d2421df84ef39481916be919e0d3f747c800ca /compile.c | |
parent | 31a3e877771dabbcd40f481023eaaf541c58af6d (diff) |
Initialize `LINK_ANCHOR` totally
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12198
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -436,10 +436,8 @@ do { \ #define NO_CHECK(sub) (void)(sub) #define BEFORE_RETURN -/* leave name uninitialized so that compiler warn if INIT_ANCHOR is - * missing */ #define DECL_ANCHOR(name) \ - LINK_ANCHOR name[1] = {{{ISEQ_ELEMENT_ANCHOR,},}} + LINK_ANCHOR name[1] = {{{ISEQ_ELEMENT_ANCHOR,},&name[0].anchor}} #define INIT_ANCHOR(name) \ (name->last = &name->anchor) |