From e18ebe10166e2c63f3385666978b678fe6ce67a2 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 26 Jun 2016 18:26:39 +0300 Subject: Minor improvements after Andy's reworking of stuff. --- eval.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'eval.c') 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) -- cgit v1.2.3