Fixed Issue #327.

This commit is contained in:
acqn 2020-08-15 07:52:58 +08:00 committed by Oliver Schmidt
parent 0536f4f9bd
commit 0486d28abc
2 changed files with 2 additions and 2 deletions

View File

@ -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);