summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-04-05 13:03:10 -0700
committerH. Peter Anvin <hpa@zytor.com>2016-04-05 13:03:10 -0700
commiteb6653f9e47b25952471386d7435f5865cf08ca3 (patch)
treec6d186979be57a9076c16445e597e16bcac96007
parentd2238e22865ec52823619108f6400937bdf2939b (diff)
downloadnasm-eb6653f9e47b25952471386d7435f5865cf08ca3.tar.gz
preproc: correct the logic in the suppression of preproc errors
The logic for suppressing preprocessor errors was missing an !, which was present before checkin 215186fe82c461bc1ccef7bed5c1a1a0253bfcc9. Reported-by: Knut St. Osmundsen <bird-nasm@anduin.net> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--preproc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/preproc.c b/preproc.c
index 72fcad5d..9576fe90 100644
--- a/preproc.c
+++ b/preproc.c
@@ -4796,7 +4796,7 @@ static void pp_verror(int severity, const char *fmt, va_list arg)
istk && istk->conds &&
((severity & ERR_PP_PRECOND) ?
istk->conds->state == COND_NEVER :
- emitting(istk->conds->state)))
+ !emitting(istk->conds->state)))
return;
/* get %macro name */