diff options
| author | yui-knk <spiketeika@gmail.com> | 2023-10-04 21:37:26 +0900 |
|---|---|---|
| committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-10-05 13:19:09 +0900 |
| commit | 4a3f88f161a6348cccf82a8350495ebbe8f9a945 (patch) | |
| tree | 64000287610481e3b0e58da763bf24a5913a6a27 | |
| parent | 8705e734ed7d8348824dfa859d93fe5b144f0e8f (diff) | |
Fix cast type
| -rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
