Fix cast type

This commit is contained in:
yui-knk 2023-10-04 21:37:26 +09:00 committed by Yuichiro Kaneko
parent 8705e734ed
commit 4a3f88f161

View File

@ -13388,8 +13388,8 @@ const_decl_path(struct parser_params *p, NODE **dest)
if (!nd_type_p(n, NODE_CALL)) { if (!nd_type_p(n, NODE_CALL)) {
const YYLTYPE *loc = &n->nd_loc; const YYLTYPE *loc = &n->nd_loc;
VALUE path; VALUE path;
if (RNODE_DASGN(n)->nd_vid) { if (RNODE_CDECL(n)->nd_vid) {
path = rb_id2str(RNODE_DASGN(n)->nd_vid); path = rb_id2str(RNODE_CDECL(n)->nd_vid);
} }
else { else {
n = RNODE_CDECL(n)->nd_else; n = RNODE_CDECL(n)->nd_else;