From: cuz Date: Sat, 10 Jun 2000 10:24:28 +0000 (+0000) Subject: Fixed a bug X-Git-Tag: V2.12.0~3469 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=97c9226c1e7aa2b77627f0f75fdb6297d3a64031;p=cc65 Fixed a bug git-svn-id: svn://svn.cc65.org/cc65/trunk@43 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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) {