mirror of
https://github.com/cc65/cc65.git
synced 2025-08-07 15:25:31 +00:00
Fixed '&function' and '&array'.
This commit is contained in:
@@ -1841,10 +1841,13 @@ void hie10 (ExprDesc* Expr)
|
||||
/* Do it anyway, just to avoid further warnings */
|
||||
Expr->Flags &= ~E_BITFIELD;
|
||||
}
|
||||
Expr->Type = PointerTo (Expr->Type);
|
||||
/* It's allowed in C to take the address of an array this way */
|
||||
if (!IsTypeFunc (Expr->Type) && !IsTypeArray (Expr->Type)) {
|
||||
/* The & operator yields an rvalue address */
|
||||
ED_AddrExpr (Expr);
|
||||
}
|
||||
Expr->Type = PointerTo (Expr->Type);
|
||||
}
|
||||
break;
|
||||
|
||||
case TOK_SIZEOF:
|
||||
|
Reference in New Issue
Block a user