]> granicus.if.org Git - graphviz/commitdiff
neato_layout: [nfc] squash a -Wsign-conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 27 Nov 2021 18:16:21 +0000 (10:16 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 3 Dec 2021 15:44:10 +0000 (07:44 -0800)
`Pack` is known non-negative in this branch.

lib/neatogen/neatoinit.c

index a7168df23eb55ab555683a90253c6e7ebbc0772c..bf1f28da310f4593a260f2377abd6b6c63e78ded 100644 (file)
@@ -1468,7 +1468,7 @@ void neato_layout(Agraph_t * g)
                    bp[0] = TRUE;
                } else
                    bp = 0;
-               pinfo.margin = Pack;
+               pinfo.margin = (unsigned)Pack;
                pinfo.fixed = bp;
                pinfo.doSplines = 1;
                packGraphs(n_cc, cc, g, &pinfo);