1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-08 06:25:17 +00:00

Fixed rvalue-ness of cast results.

This commit is contained in:
acqn
2020-08-15 06:27:11 +08:00
committed by Oliver Schmidt
parent 63fa9a5a42
commit d1995fc81a

View File

@@ -370,4 +370,7 @@ void TypeCast (ExprDesc* Expr)
Error ("Arithmetic or pointer type expected but %s is used", Error ("Arithmetic or pointer type expected but %s is used",
GetBasicTypeName (NewType)); GetBasicTypeName (NewType));
} }
/* The result is always an rvalue */
ED_MarkExprAsRVal (Expr);
} }