From 4a3f88f161a6348cccf82a8350495ebbe8f9a945 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Wed, 4 Oct 2023 21:37:26 +0900 Subject: [PATCH] Fix cast type --- parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parse.y b/parse.y index b8267a002e..15d0efe257 100644 --- a/parse.y +++ b/parse.y @@ -13388,8 +13388,8 @@ const_decl_path(struct parser_params *p, NODE **dest) if (!nd_type_p(n, NODE_CALL)) { const YYLTYPE *loc = &n->nd_loc; VALUE path; - if (RNODE_DASGN(n)->nd_vid) { - path = rb_id2str(RNODE_DASGN(n)->nd_vid); + if (RNODE_CDECL(n)->nd_vid) { + path = rb_id2str(RNODE_CDECL(n)->nd_vid); } else { n = RNODE_CDECL(n)->nd_else;