1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-19 06:31:31 +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) {
/* Reference with address in primary */
g_getind (Flags, 0);
}
} else if (Flags & CF_TEST) {
/* The value is already in the primary but needs a test */
g_test (Flags);
}
} else {
/* An rvalue */
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 */
LoadConstant (Flags, Expr);
}
}
/* Are we testing this value? */
if (Expr->Test & E_FORCETEST) {
/* Yes, force a test */
Flags |= TypeOf (Expr->Type);
g_test (Flags);
Expr->Test &= ~E_FORCETEST;
/* Are we testing this value? */
if (Expr->Test & E_FORCETEST) {
/* Yes, force a test */
Flags |= TypeOf (Expr->Type);
g_test (Flags);
Expr->Test &= ~E_FORCETEST;
}
}
}