From 0486d28abc155c32253b5fab0a00e5e35f81e053 Mon Sep 17 00:00:00 2001 From: acqn Date: Sat, 15 Aug 2020 07:52:58 +0800 Subject: [PATCH] Fixed Issue #327. --- src/cc65/typeconv.c | 4 ++-- test/{todo => val}/bug327.c | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename test/{todo => val}/bug327.c (100%) diff --git a/src/cc65/typeconv.c b/src/cc65/typeconv.c index 7e2787529..c9163eb51 100644 --- a/src/cc65/typeconv.c +++ b/src/cc65/typeconv.c @@ -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); diff --git a/test/todo/bug327.c b/test/val/bug327.c similarity index 100% rename from test/todo/bug327.c rename to test/val/bug327.c