Fixed/worked around a bug
git-svn-id: svn://svn.cc65.org/cc65/trunk@1343 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -2947,8 +2947,10 @@ static void addsubeq (const GenDesc* Gen, ExprDesc *lval, int k)
|
|||||||
lflags |= TypeOf (lval->Type) | CF_FORCECHAR;
|
lflags |= TypeOf (lval->Type) | CF_FORCECHAR;
|
||||||
rflags |= TypeOf (lval2.Type);
|
rflags |= TypeOf (lval2.Type);
|
||||||
|
|
||||||
/* Adjust the rhs to the lhs */
|
/* Adjust the rhs to the lhs. To avoid manipulation of the TOS, mark
|
||||||
g_typeadjust (lflags, rflags);
|
* the lhs as const.
|
||||||
|
*/
|
||||||
|
g_typeadjust (lflags | CF_CONST, rflags);
|
||||||
|
|
||||||
/* Output apropriate code */
|
/* Output apropriate code */
|
||||||
if (lval->Flags & E_MGLOBAL) {
|
if (lval->Flags & E_MGLOBAL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user