Fix cast node type
This commit is contained in:
parent
3049b5e348
commit
8c2a493233
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user