We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419b749 commit 89ccc40Copy full SHA for 89ccc40
examples/regtest.c
@@ -43,13 +43,13 @@ FILE *open_dump(const char *filename)
43
44
void dump_depth(FILE *fp, void *data, unsigned int width, unsigned int height)
45
{
46
- fprintf(fp, "P5 %d %d 65535\n", width, height);
+ fprintf(fp, "P5 %u %u 65535\n", width, height);
47
fwrite(data, width * height * 2, 1, fp);
48
}
49
50
void dump_rgb(FILE *fp, void *data, unsigned int width, unsigned int height)
51
52
- fprintf(fp, "P6 %d %d 255\n", width, height);
+ fprintf(fp, "P6 %u %u 255\n", width, height);
53
fwrite(data, width * height * 3, 1, fp);
54
55
0 commit comments