]> granicus.if.org Git - graphviz/commitdiff
selectedLayer: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Aug 2021 23:29:28 +0000 (16:29 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:28:19 +0000 (19:28 -0700)
lib/common/emit.c

index f41e00479e36ea69db191653c389b890b0194781..8183eb49ce78d7da765c3ccbb4d8e56b39c9deac 100644 (file)
@@ -1064,7 +1064,7 @@ static bool selectedLayer(GVC_t *gvc, int layerNum, int numLayers, char *spec)
        case 2:
            n0 = layer_index(gvc, w0, 0);
            n1 = layer_index(gvc, w1, numLayers);
-           if ((n0 >= 0) || (n1 >= 0)) {
+           if (n0 >= 0 || n1 >= 0) {
                if (n0 > n1) {
                    int t = n0;
                    n0 = n1;