From a3eed9016fd2a588b88ada7325981098b6396605 Mon Sep 17 00:00:00 2001 From: uz Date: Thu, 30 Jul 2009 15:15:13 +0000 Subject: [PATCH] Fix problem with R3904: Chars on the lhs of opeq must still be accessed as such. git-svn-id: svn://svn.cc65.org/cc65/trunk@3985 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/expr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cc65/expr.c b/src/cc65/expr.c index d12bdb44f..01436b96f 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -2940,9 +2940,9 @@ static void addsubeq (const GenDesc* Gen, ExprDesc *Expr) g_scale (TypeOf (Expr2.Type), CheckedSizeOf (Indirect (Expr->Type))); } } - + /* Setup the code generator flags */ - lflags |= TypeOf (Expr->Type) | GlobalModeFlags (Expr); + lflags |= TypeOf (Expr->Type) | GlobalModeFlags (Expr) | CF_FORCECHAR; rflags |= TypeOf (Expr2.Type) | CF_FORCECHAR; /* Convert the type of the lhs to that of the rhs */ @@ -2950,7 +2950,7 @@ static void addsubeq (const GenDesc* Gen, ExprDesc *Expr) /* Output apropriate code depending on the location */ switch (ED_GetLoc (Expr)) { - + case E_LOC_ABS: /* Absolute: numeric address or const */ if (Gen->Tok == TOK_PLUS_ASSIGN) {