From 8c2a4932331987586d583fa58a6e80920c6743c5 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 9 Oct 2023 15:57:40 +0900 Subject: [PATCH] Fix cast node type --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }