]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wconversion warnings in cccomps
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sat, 29 Aug 2020 16:11:36 +0000 (18:11 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Mon, 7 Sep 2020 13:42:17 +0000 (15:42 +0200)
lib/pack/ccomps.c

index d3ae0bb4e55b3b0dc43d13a65d346fdfc18fe6e7..ce88da109aa3793396e93e2dba289925ed473b08 100644 (file)
@@ -672,7 +672,7 @@ Agraph_t **cccomps(Agraph_t * g, int *ncc, char *pfx)
     ccs = RALLOC(c_cnt, ccs, Agraph_t *);
     if (name != buffer)
        free(name);
-    *ncc = c_cnt;
+    *ncc = (int) c_cnt;
     return ccs;
 }