nasm: Fix condition in skip_this_pass

We should not match both condition.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2018-12-16 01:21:13 +03:00
parent 988cc1222c
commit 35d047632b

View File

@ -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));
}