From 35d047632bdfcffcc8ae24d0b549c37a1666af14 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 16 Dec 2018 01:21:13 +0300 Subject: nasm: Fix condition in skip_this_pass We should not match both condition. Signed-off-by: Cyrill Gorcunov --- asm/nasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- cgit v1.2.1