From 3f77ced409b3cabef604f4bc1019420f4086b4b7 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 10 Nov 2021 17:27:23 -0800 Subject: [PATCH] imagetype: squash -Wsign-compare warning --- lib/gvc/gvusershape.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index 02da47cd2..63b9f5d30 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -81,10 +81,9 @@ static int imagetype (usershape_t *us) { char header[HDRLEN]; char line[200]; - int i; if (us->f && fread(header, 1, HDRLEN, us->f) == HDRLEN) { - for (i = 0; i < sizeof(knowntypes) / sizeof(knowntype_t); i++) { + for (size_t i = 0; i < sizeof(knowntypes) / sizeof(knowntype_t); i++) { if (!memcmp (header, knowntypes[i].template, knowntypes[i].size)) { us->stringtype = knowntypes[i].stringtype; us->type = knowntypes[i].type; -- 2.40.0