mirror of https://github.com/cc65/cc65.git
Fixed crash in Opt_a_toscmpbool caused by wrong order of condition checks.
This commit is contained in:
parent
28b1687aaf
commit
eeaa111835
|
@ -1113,9 +1113,9 @@ static unsigned Opt_a_toscmpbool (StackOpData* D, const char* BoolTransformer)
|
||||||
|
|
||||||
D->IP = D->OpIndex + 1;
|
D->IP = D->OpIndex + 1;
|
||||||
|
|
||||||
if (!D->RhsMultiChg &&
|
if (!D->RhsMultiChg &&
|
||||||
(D->Rhs.A.LoadEntry->Flags & CEF_DONT_REMOVE) == 0 &&
|
(D->Rhs.A.Flags & LI_DIRECT) != 0 &&
|
||||||
(D->Rhs.A.Flags & LI_DIRECT) != 0) {
|
(D->Rhs.A.LoadEntry->Flags & CEF_DONT_REMOVE) == 0) {
|
||||||
|
|
||||||
/* cmp */
|
/* cmp */
|
||||||
AddOpLow (D, OP65_CMP, &D->Rhs);
|
AddOpLow (D, OP65_CMP, &D->Rhs);
|
||||||
|
|
Loading…
Reference in New Issue