aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index 5123189..85c4d6a 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -190,7 +190,7 @@ Type *parse_type(Lexer *lexer)
type = type_new(TYPE_NONE);
}
- while (Lexer_peek(lexer).type == TOKEN_AMPERSAND) {
+ while (Lexer_peek(lexer).type == TOKEN_STAR) {
Lexer_next(lexer);
Type *ptr = type_new(TYPE_PTR);
ptr->ptr = type;