]> granicus.if.org Git - graphviz/commitdiff
translate_drawing: [nfc] use a bool for 'shift' for clearer intent
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 24 Dec 2021 16:53:03 +0000 (08:53 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 25 Dec 2021 19:40:23 +0000 (11:40 -0800)
lib/common/postproc.c

index eec53409eb6e15754120298b3ffcc5ac7c1efa4c..9ef367d5729e8901095b4a63559c041bd32ed5dc 100644 (file)
@@ -146,7 +146,7 @@ static void translate_drawing(graph_t * g)
 {
     node_t *v;
     edge_t *e;
-    int shift = Offset.x || Offset.y;
+    bool shift = Offset.x || Offset.y;
 
     if (!shift && !Rankdir)
        return;