aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}