diff --git a/src/parse.c b/src/parse.c index 5e9eb5e..c33b0a5 100644 --- a/src/parse.c +++ b/src/parse.c @@ -290,7 +290,7 @@ AST *nct_parse_expression(Parser *P, int lOP) { Token op = P->tokens[P->i - 1]; if(op.type == TOKEN_DOT) { - while(type_is_any_pointer(e->expression.type)) { + while(e->expression.type->type == TYPE_TYPE_POINTER) { AST *deref = alloc_node(P, sizeof(ASTExprUnaryOp)); deref->nodeKind = AST_EXPR_UNARY_OP; deref->exprUnOp.operator = UNOP_DEREF;