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

index 55973af0e2a95646ba24d6a8519d3d41bf838f67..316c01e6e990bdc4544b5a180627a34f966811d2 100644 (file)
@@ -1414,10 +1414,10 @@ static void firstpage(GVJ_t *job)
 
 static bool validpage(GVJ_t *job)
 {
-    return ((job->pagesArrayElem.x >= 0)
-        && (job->pagesArrayElem.x < job->pagesArraySize.x)
-        && (job->pagesArrayElem.y >= 0)
-        && (job->pagesArrayElem.y < job->pagesArraySize.y));
+    return job->pagesArrayElem.x >= 0
+        && job->pagesArrayElem.x < job->pagesArraySize.x
+        && job->pagesArrayElem.y >= 0
+        && job->pagesArrayElem.y < job->pagesArraySize.y;
 }
 
 static void nextpage(GVJ_t *job)