Fix cast node type

This commit is contained in:
yui-knk 2023-10-09 15:57:40 +09:00 committed by Yuichiro Kaneko
parent 3049b5e348
commit 8c2a493233

View File

@ -4890,7 +4890,7 @@ rb_node_case_when_optimizable_literal(const NODE *const node)
case NODE_FALSE: case NODE_FALSE:
return Qfalse; return Qfalse;
case NODE_STR: case NODE_STR:
return rb_fstring(RNODE_LIT(node)->nd_lit); return rb_fstring(RNODE_STR(node)->nd_lit);
} }
return Qundef; return Qundef;
} }