Use unsigned int for image size

This removes a warning with -Wall.
This commit is contained in:
Rene Kita
2021-09-15 19:08:15 +02:00
parent cf2fd623fc
commit 0073ec6daf

View File

@@ -733,7 +733,7 @@ getImageSize(ImageCache * cache)
{ {
Str tmp; Str tmp;
FILE *f; FILE *f;
int w = 0, h = 0; unsigned int w = 0, h = 0;
if (!activeImage) if (!activeImage)
return FALSE; return FALSE;
@@ -751,7 +751,7 @@ getImageSize(ImageCache * cache)
f = popen(tmp->ptr, "r"); f = popen(tmp->ptr, "r");
if (!f) if (!f)
return FALSE; return FALSE;
while (fscanf(f, "%d %d", &w, &h) < 0) { while (fscanf(f, "%u %u", &w, &h) < 0) {
if (feof(f)) if (feof(f))
break; break;
} }