Fixed result type in certain contant expression addition cases.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user