]> granicus.if.org Git - graphviz/commitdiff
dotgen cl_vninside: remove redundant casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 00:27:49 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Jan 2023 16:24:43 +0000 (08:24 -0800)
ebd6191b0eec6e23d96c92aaa06212de339207e3 made these casts no-ops.

lib/dotgen/dotsplines.c

index fcc0dfc87e5f7b8702f9395937fb3b8013a61e9c..af66e76d4b1399fa2d44b94e53fa679672cad3ea 100644 (file)
@@ -2379,8 +2379,8 @@ static edge_t *bot_bound(edge_t * e, int side)
 
 static int cl_vninside(graph_t * cl, node_t * n)
 {
-    return BETWEEN(GD_bb(cl).LL.x, (double)(ND_coord(n).x), GD_bb(cl).UR.x) &&
-           BETWEEN(GD_bb(cl).LL.y, (double)(ND_coord(n).y), GD_bb(cl).UR.y);
+  return BETWEEN(GD_bb(cl).LL.x, ND_coord(n).x, GD_bb(cl).UR.x) &&
+         BETWEEN(GD_bb(cl).LL.y, ND_coord(n).y, GD_bb(cl).UR.y);
 }
 
 /* All nodes belong to some cluster, which may be the root graph.