summaryrefslogtreecommitdiff
path: root/progs/samples/loadppm.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/samples/loadppm.c')
-rw-r--r--progs/samples/loadppm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/samples/loadppm.c b/progs/samples/loadppm.c
index b4b1b387fd..be056d6294 100644
--- a/progs/samples/loadppm.c
+++ b/progs/samples/loadppm.c
@@ -37,7 +37,7 @@ static PPMImage *LoadPPM(const char *filename)
exit(1);
}
- if (fscanf(fp, "%d %d", &result->sizeX, &result->sizeY) != 2)
+ if (fscanf(fp, "%lu %lu", &result->sizeX, &result->sizeY) != 2)
{
fprintf(stderr, "Error loading image `%s'\n", filename);
exit(1);