]> granicus.if.org Git - graphviz/commitdiff
xdotBB: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 30 Aug 2021 00:29:55 +0000 (17:29 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 02:31:58 +0000 (19:31 -0700)
lib/common/emit.c

index 4c513f4076f7eedcf72585d4de246236000aacac..db497cb39260ee4dae5558409a949868ce71ca4d 100644 (file)
@@ -2954,12 +2954,12 @@ boxf xdotBB (Agraph_t* g)
 
     if (!xd) return bb;
 
-    if ((bb.LL.x == bb.UR.x) && (bb.LL.y == bb.UR.y)) {
+    if (bb.LL.x == bb.UR.x && bb.LL.y == bb.UR.y) {
        bb.LL.x = bb.LL.y = MAXDOUBLE;
        bb.UR.x = bb.UR.y = -MAXDOUBLE;
     }
 
-    op = (exdot_op*)(xd->ops);
+    op = (exdot_op*)xd->ops;
     for (i = 0; i < xd->cnt; i++) {
        tf = null_tf;
        switch (op->op.kind) {