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:
parent
f2eed38fc8
commit
3caceb8174
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user