diff --git a/src/cc65/typeconv.c b/src/cc65/typeconv.c index 3af092d42..0f67db107 100644 --- a/src/cc65/typeconv.c +++ b/src/cc65/typeconv.c @@ -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); }