mirror of
https://github.com/cc65/cc65.git
synced 2025-08-05 17:25:17 +00:00
Fixed Issue #327.
This commit is contained in:
@@ -124,7 +124,7 @@ static void DoConversion (ExprDesc* Expr, const Type* NewType)
|
||||
LoadExpr (CF_NONE, Expr);
|
||||
|
||||
/* Emit typecast code */
|
||||
g_typecast (TypeOf (NewType), TypeOf (OldType) | CF_FORCECHAR);
|
||||
g_typecast (TypeOf (NewType), TypeOf (OldType));
|
||||
|
||||
/* Value is now in primary and an rvalue */
|
||||
ED_FinalizeRValLoad (Expr);
|
||||
@@ -175,7 +175,7 @@ static void DoConversion (ExprDesc* Expr, const Type* NewType)
|
||||
LoadExpr (CF_NONE, Expr);
|
||||
|
||||
/* Emit typecast code. */
|
||||
g_typecast (TypeOf (NewType), TypeOf (OldType) | CF_FORCECHAR);
|
||||
g_typecast (TypeOf (NewType), TypeOf (OldType));
|
||||
|
||||
/* Value is now an rvalue in the primary */
|
||||
ED_FinalizeRValLoad (Expr);
|
||||
|
Reference in New Issue
Block a user