From 97c9226c1e7aa2b77627f0f75fdb6297d3a64031 Mon Sep 17 00:00:00 2001 From: cuz Date: Sat, 10 Jun 2000 10:24:28 +0000 Subject: [PATCH] Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@43 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/expr.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/cc65/expr.c b/src/cc65/expr.c index 009edce97..3a0d023bf 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -2602,12 +2602,8 @@ static void addsubeq (GenDesc* Gen, struct expent *lval, int k) } } - /* If the lhs is character sized, the operation may be later done - * with characters. - */ - if (SizeOf (lval->e_tptr) == 1) { - flags |= CF_FORCECHAR; - } + /* Adjust the rhs to the lhs */ + g_typeadjust (flags, TypeOf (lval2.e_tptr)); /* Output apropriate code */ if (lval->e_flags & E_MGLOBAL) { -- 2.39.5