aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-10-09 15:57:40 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-10-09 19:08:23 +0900
commit8c2a4932331987586d583fa58a6e80920c6743c5 (patch)
tree9f4c37ad3b56a866c25bdf52bf68d3abe205108f /compile.c
parent3049b5e348be2595e4b8c5dbddcdaef5a82d0276 (diff)
downloadruby-8c2a4932331987586d583fa58a6e80920c6743c5.tar.gz
Fix cast node type
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 42d58e7c1f..6c241c5b1d 100644
--- a/compile.c
+++ b/compile.c
@@ -4890,7 +4890,7 @@ rb_node_case_when_optimizable_literal(const NODE *const node)
case NODE_FALSE:
return Qfalse;
case NODE_STR:
- return rb_fstring(RNODE_LIT(node)->nd_lit);
+ return rb_fstring(RNODE_STR(node)->nd_lit);
}
return Qundef;
}