From 057a016d64c9feefeab869025f9d1c6e010dd305 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 16 Jul 2022 10:05:21 -0700 Subject: [PATCH] common mkDirlist: use a 'size_t' for item count Squashes two -Wsign-conversion warnings. --- lib/common/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0