1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-03 01:31:55 +00:00

Fixed a bug

git-svn-id: svn://svn.cc65.org/cc65/trunk@2437 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-09-14 11:12:27 +00:00
parent 3499efea8f
commit f4e5baa444

View File

@ -444,7 +444,10 @@ void ExprLoad (unsigned Flags, int k, ExprDesc* Expr)
} else if (f != E_MREG) { } else if (f != E_MREG) {
/* Reference with address in primary */ /* Reference with address in primary */
g_getind (Flags, 0); g_getind (Flags, 0);
} } else if (Flags & CF_TEST) {
/* The value is already in the primary but needs a test */
g_test (Flags);
}
} else { } else {
/* An rvalue */ /* An rvalue */
if (f == E_MEOFFS) { if (f == E_MEOFFS) {
@ -455,14 +458,14 @@ void ExprLoad (unsigned Flags, int k, ExprDesc* Expr)
/* Constant of some sort, load it into the primary */ /* Constant of some sort, load it into the primary */
LoadConstant (Flags, Expr); LoadConstant (Flags, Expr);
} }
}
/* Are we testing this value? */ /* Are we testing this value? */
if (Expr->Test & E_FORCETEST) { if (Expr->Test & E_FORCETEST) {
/* Yes, force a test */ /* Yes, force a test */
Flags |= TypeOf (Expr->Type); Flags |= TypeOf (Expr->Type);
g_test (Flags); g_test (Flags);
Expr->Test &= ~E_FORCETEST; Expr->Test &= ~E_FORCETEST;
}
} }
} }