projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gallium: remove redundant compare bit in sampler state
[mesa.git]
/
progs
/
samples
/
loadppm.c
diff --git
a/progs/samples/loadppm.c
b/progs/samples/loadppm.c
index 5d3e3ab56f10631db43e506742543433733fa0e3..be056d62940503949a0bea7e58d73c58ed0d366b 100644
(file)
--- a/
progs/samples/loadppm.c
+++ b/
progs/samples/loadppm.c
@@
-1,6
+1,6
@@
typedef struct {
typedef struct {
-
in
t sizeX, sizeY;
+
size_
t sizeX, sizeY;
GLubyte *data;
} PPMImage;
GLubyte *data;
} PPMImage;
@@
-37,7
+37,7
@@
static PPMImage *LoadPPM(const char *filename)
exit(1);
}
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);
{
fprintf(stderr, "Error loading image `%s'\n", filename);
exit(1);