]> granicus.if.org Git - graphviz/commitdiff
make_map_internal: flip order of 'bbm0' if-then-else ladder
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 19 Sep 2021 22:09:31 +0000 (15:09 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Sep 2021 17:22:20 +0000 (10:22 -0700)
Squashes a -Wfloat-equal warning.

cmd/gvmap/make_map.c

index c7f81792c4027b0ef53221533c7a818cda4cab1d..b6a0ef6451117b534b083795ceb1149b09b25c79 100644 (file)
@@ -1146,10 +1146,10 @@ static int make_map_internal(int exclude_random, int include_OK_points,
       real bbm1 = bounding_box_margin[1];
       if (bbm0 > 0)
        fprintf (stderr, "bounding box margin: %.06f", bbm0);
-      else if (bbm0 == 0)
-       fprintf (stderr, "bounding box margin: %.06f", MAX(boxsize[0]*0.2, 2*shore_depth_tol));
-      else 
+      else if (bbm0 < 0)
        fprintf (stderr, "bounding box margin: (%.06f * %.06f)", boxsize[0], -bbm0);
+      else
+       fprintf (stderr, "bounding box margin: %.06f", MAX(boxsize[0]*0.2, 2*shore_depth_tol));
       if (bbm1 > 0)
        fprintf (stderr, " %.06f\n", bbm1);
       else if (bbm1 == 0)