]> git.sur5r.net Git - cc65/commitdiff
Fix problem with R3904: Chars on the lhs of opeq must still be accessed as
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 30 Jul 2009 15:15:13 +0000 (15:15 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 30 Jul 2009 15:15:13 +0000 (15:15 +0000)
such.

git-svn-id: svn://svn.cc65.org/cc65/trunk@3985 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/cc65/expr.c

index d12bdb44f8c015dbcbb81dac058509f872cecebc..01436b96f2d6e20a0d9fa1e1341ae49e694785b9 100644 (file)
@@ -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) {