ash: placate gcc: "warning: ! is only applied to the left hand side of =="
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Oct 2016 13:31:33 +0000 (15:31 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 2 Oct 2016 13:31:33 +0000 (15:31 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash.c

index 40b3ef3e3a946d61413619aeaf4ac074937d2f27..41ae5cbd2c585f4c1c0380de5d6f7b89b47d412e 100644 (file)
@@ -8590,7 +8590,7 @@ evaltree(union node *n, int flags)
                        n->nbinary.ch1,
                        (flags | ((is_or >> 1) - 1)) & EV_TESTED
                );
-               if (!status == is_or || evalskip)
+               if ((!status) == is_or || evalskip)
                        break;
                n = n->nbinary.ch2;
  evaln: