mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +00:00
Fixed rvalue-ness of cast results.
This commit is contained in:
parent
63fa9a5a42
commit
d1995fc81a
@ -370,4 +370,7 @@ void TypeCast (ExprDesc* Expr)
|
||||
Error ("Arithmetic or pointer type expected but %s is used",
|
||||
GetBasicTypeName (NewType));
|
||||
}
|
||||
|
||||
/* The result is always an rvalue */
|
||||
ED_MarkExprAsRVal (Expr);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user