summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-10-04 21:37:26 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-10-05 13:19:09 +0900
commit4a3f88f161a6348cccf82a8350495ebbe8f9a945 (patch)
tree64000287610481e3b0e58da763bf24a5913a6a27 /parse.y
parent8705e734ed7d8348824dfa859d93fe5b144f0e8f (diff)
Fix cast type
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files 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;