aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-06-26 18:26:39 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-06-26 18:26:39 +0300
commite18ebe10166e2c63f3385666978b678fe6ce67a2 (patch)
tree7f6a2249dfda678c8651f0e24a273bb8b54bb886 /eval.c
parent278767f062a9c6f8ae9ff777b1a41e094813fa09 (diff)
downloadegawk-e18ebe10166e2c63f3385666978b678fe6ce67a2.tar.gz
egawk-e18ebe10166e2c63f3385666978b678fe6ce67a2.tar.bz2
egawk-e18ebe10166e2c63f3385666978b678fe6ce67a2.zip
Minor improvements after Andy's reworking of stuff.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/eval.c b/eval.c
index d7735205..5b4418b8 100644
--- a/eval.c
+++ b/eval.c
@@ -942,18 +942,16 @@ set_LINT()
if (lintlen == 5 && strncmp(lintval, "fatal", 5) == 0)
lintfunc = r_fatal;
else if (lintlen == 7 && strncmp(lintval, "invalid", 7) == 0) {
- do_flags &= ~ DO_LINT_ALL;
+ do_flags &= ~DO_LINT_ALL;
do_flags |= DO_LINT_INVALID;
}
} else {
do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID);
}
- } else {
- if (! iszero(n))
- do_flags |= DO_LINT_ALL;
- else
- do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID);
- }
+ } else if (! iszero(n))
+ do_flags |= DO_LINT_ALL;
+ else
+ do_flags &= ~(DO_LINT_ALL|DO_LINT_INVALID);
/* explicitly use warning() here, in case lintfunc == r_fatal */
if (old_lint != do_lint && old_lint && ! do_lint)