From: Matthew Fernandez Date: Sat, 16 Jul 2022 17:05:21 +0000 (-0700) Subject: common mkDirlist: use a 'size_t' for item count X-Git-Tag: 5.0.1~35^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=057a016d64c9feefeab869025f9d1c6e010dd305;p=graphviz common mkDirlist: use a 'size_t' for item count Squashes two -Wsign-conversion warnings. --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 4e1bc4766..ec1fb2cd9 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -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;