From 0073ec6daf53e5b2efac997ac212d03c2cd1aa74 Mon Sep 17 00:00:00 2001 From: Rene Kita Date: Wed, 15 Sep 2021 19:08:15 +0200 Subject: [PATCH] Use unsigned int for image size This removes a warning with -Wall. --- image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image.c b/image.c index a06655e..3532040 100644 --- a/image.c +++ b/image.c @@ -733,7 +733,7 @@ getImageSize(ImageCache * cache) { Str tmp; FILE *f; - int w = 0, h = 0; + unsigned int w = 0, h = 0; if (!activeImage) return FALSE; @@ -751,7 +751,7 @@ getImageSize(ImageCache * cache) f = popen(tmp->ptr, "r"); if (!f) return FALSE; - while (fscanf(f, "%d %d", &w, &h) < 0) { + while (fscanf(f, "%u %u", &w, &h) < 0) { if (feof(f)) break; }