]> granicus.if.org Git - graphviz/commitdiff
scomp: remove unnecessary brackets
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 10 Sep 2021 00:53:49 +0000 (17:53 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 16 Sep 2021 02:56:26 +0000 (19:56 -0700)
lib/neatogen/adjust.c

index 334c989491ecdaae4185af130e0a91c8f29edd46..d7db933def1a45eb2f0feedc3e111a3ef085408f 100644 (file)
@@ -184,14 +184,14 @@ static int scomp(const void *S1, const void *S2)
     s1 = *(Site *const *) S1;
     s2 = *(Site *const *) S2;
     if (s1->coord.y < s2->coord.y)
-       return (-1);
+       return -1;
     if (s1->coord.y > s2->coord.y)
-       return (1);
+       return 1;
     if (s1->coord.x < s2->coord.x)
-       return (-1);
+       return -1;
     if (s1->coord.x > s2->coord.x)
-       return (1);
-    return (0);
+       return 1;
+    return 0;
 }
 
  /* sortSites: