]> granicus.if.org Git - graphviz/commitdiff
common mkDirlist: use a 'size_t' for item count
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 16 Jul 2022 17:05:21 +0000 (10:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 22 Jul 2022 00:41:58 +0000 (17:41 -0700)
Squashes two -Wsign-conversion warnings.

lib/common/utils.c

index 4e1bc4766180a581e3dfee8323a549d1767f9b4c..ec1fb2cd9a505d3fab66d3e07b2584695f9cf811 100644 (file)
@@ -322,7 +322,7 @@ char *Fgets(FILE * fp)
 #endif
 
 static strview_t *mkDirlist(const char *list, size_t *maxdirlen) {
-    int cnt = 0;
+    size_t cnt = 0;
     strview_t *dirs = NULL;
     size_t maxlen = 0;