aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-10-10 21:24:39 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-10-11 19:22:34 +0900
commitf9fe7aeef46fc1e7782a942aaafa2b157b5548de (patch)
treef497a3749a3a815279a32b8ca7bda246e904e465 /compile.c
parentb17ae8889444bc3437ec88265cf9d90c9064def4 (diff)
downloadruby-f9fe7aeef46fc1e7782a942aaafa2b157b5548de.tar.gz
Extract NODE_FL_NEWLINE access to macro
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 6c241c5b1d..06be77d645 100644
--- a/compile.c
+++ b/compile.c
@@ -9534,7 +9534,7 @@ iseq_compile_each0(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const no
/* ignore */
}
else {
- if (node->flags & NODE_FL_NEWLINE) {
+ if (nd_fl_newline(node)) {
int event = RUBY_EVENT_LINE;
ISEQ_COMPILE_DATA(iseq)->last_line = line;
if (ISEQ_COVERAGE(iseq) && ISEQ_LINE_COVERAGE(iseq)) {