gallium: remove redundant compare bit in sampler state
[mesa.git] / progs / samples / loadppm.c
index 5d3e3ab56f10631db43e506742543433733fa0e3..be056d62940503949a0bea7e58d73c58ed0d366b 100644 (file)
@@ -1,6 +1,6 @@
 
 typedef struct {
-    int sizeX, sizeY;
+    size_t sizeX, sizeY;
     GLubyte *data;
 } PPMImage;
 
@@ -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);