1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-30 08:57:49 +00:00

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
This commit is contained in:
uz 2009-07-30 15:15:13 +00:00
parent 37157a31a8
commit a3eed9016f

View 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) {