Skip to content

Commit 89ccc40

Browse files
committed
Fixed fprintf format warnings
Signed-off-by: Benn Snyder <[email protected]>
1 parent 419b749 commit 89ccc40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/regtest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ FILE *open_dump(const char *filename)
4343

4444
void dump_depth(FILE *fp, void *data, unsigned int width, unsigned int height)
4545
{
46-
fprintf(fp, "P5 %d %d 65535\n", width, height);
46+
fprintf(fp, "P5 %u %u 65535\n", width, height);
4747
fwrite(data, width * height * 2, 1, fp);
4848
}
4949

5050
void dump_rgb(FILE *fp, void *data, unsigned int width, unsigned int height)
5151
{
52-
fprintf(fp, "P6 %d %d 255\n", width, height);
52+
fprintf(fp, "P6 %u %u 255\n", width, height);
5353
fwrite(data, width * height * 3, 1, fp);
5454
}
5555

0 commit comments

Comments
 (0)