summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-11-28 19:02:56 +0900
committerNobuyoshi Nakada <[email protected]>2024-11-28 19:02:56 +0900
commitde89bff122c65cabd92ad5e6f59ca9b8cbc121a4 (patch)
treebd92bdc10a347e290816c70390d5512fd241c786 /compile.c
parentb8f248ee5a38b1123a8dac6e8895640e64504ea7 (diff)
`INIT_ANCHOR` no longer needed usually
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12198
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index 38afc70cdf..5831e96908 100644
--- a/compile.c
+++ b/compile.c
@@ -439,7 +439,7 @@ do { \
#define DECL_ANCHOR(name) \
LINK_ANCHOR name[1] = {{{ISEQ_ELEMENT_ANCHOR,},&name[0].anchor}}
#define INIT_ANCHOR(name) \
- (name->last = &name->anchor)
+ ((name->last = &name->anchor)->next = NULL) /* re-initialize */
static inline VALUE
freeze_hide_obj(VALUE obj)