1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-11 11:30:13 +00:00

Fixed result type in certain contant expression addition cases.

This commit is contained in:
acqn 2021-02-15 17:30:17 +08:00 committed by Oliver Schmidt
parent f2eed38fc8
commit 3caceb8174

View File

@ -3171,6 +3171,9 @@ static void parseadd (ExprDesc* Expr)
flags = CF_INT;
}
/* Array and function types must be converted to pointer types */
Expr->Type = PtrConversion (Expr->Type);
/* Result is an rvalue in primary register */
ED_FinalizeRValLoad (Expr);
}