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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user