aboutsummaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-03-27 03:18:48 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-03-27 03:18:48 +0300
commit78cf00cb506cb86112cb715e4d2d69ec11b20c42 (patch)
tree32a1fd3d1e60343cb1e654900c2d4dedca5e938b /src/parser.y
parent9fb179ab999c3b98caabca09b30c409dc5dd3b3d (diff)
downloadek-78cf00cb506cb86112cb715e4d2d69ec11b20c42.tar.gz
ek-78cf00cb506cb86112cb715e4d2d69ec11b20c42.zip
change typeof to be a full time type
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index 4ad4d8b..50edf13 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -444,7 +444,7 @@ variadic_sign: func_sign { $$ = $1; }
type: id { $$ = gen_type(AST_TYPE_ID, $1, NULL, NULL); }
| "'" func_sign {
$$ = gen_type(AST_TYPE_POINTER, NULL, NULL, NULL);
- $$->next = $2;
+ $$->_type.next = $2;
}
| id "(" type_list ")" {
$$ = gen_type(AST_TYPE_STRUCT, $1, $3, NULL);