summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-12-16 01:21:13 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-12-16 01:21:13 +0300
commit35d047632bdfcffcc8ae24d0b549c37a1666af14 (patch)
treef095165860d310be4703c56a4dbd1d893c7ec6aa
parent988cc1222c0e646268c5adbdb534aedf813f8336 (diff)
downloadnasm-35d047632bdfcffcc8ae24d0b549c37a1666af14.tar.gz
nasm: Fix condition in skip_this_pass
We should not match both condition. Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--asm/nasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/nasm.c b/asm/nasm.c
index 05727fc2..ec6a959d 100644
--- a/asm/nasm.c
+++ b/asm/nasm.c
@@ -1756,7 +1756,7 @@ static bool skip_this_pass(errflags severity)
* pass0 is 2 on the code-generation (final) pass only.
* These are the passes we care about in this case.
*/
- return (((severity & ERR_PASS1) && passn != 1) ||
+ return (((severity & ERR_PASS1) && passn != 1) &&
((severity & ERR_PASS2) && pass0 != 2));
}