]> granicus.if.org Git - graphviz/commitdiff
gvpack redoBBk: use size_t for buffer lengths
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 13 Nov 2021 03:17:28 +0000 (19:17 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 19 Nov 2021 01:52:33 +0000 (17:52 -0800)
Squashes some -Wconverion warnings.

cmd/tools/gvpack.c

index 5b4799bbbc95a408afd8ff97851b159437a60cf1..3aa1521aa598121bdcd128ff926d8236c30a79fe 100644 (file)
@@ -547,10 +547,10 @@ static void redoBB(Agraph_t * g, char *s, Agsym_t * G_bb, point delta)
 static char *xName(Dt_t * names, char *oldname)
 {
     static char* name = NULL;
-    static int namelen = 0;
+    static size_t namelen = 0;
     char *namep;
     pair_t *p;
-    int len;
+    size_t len;
 
     p = dtmatch(names, oldname);
     if (p) {