Fixed result type in certain contant expression addition cases.
This commit is contained in:
parent
f2eed38fc8
commit
3caceb8174
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue