Auto dereferencing is only for near pointers
This commit is contained in:
parent
8fc5521601
commit
fc16c077d9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user