diff options
| author | Mika Lindqvist <postmaster@raasu.org> | 2025-10-09 11:40:16 +0300 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2025-10-22 13:17:13 +0200 |
| commit | 7b29794c1807fcdeb1b81729a1d7ae1ac93fbd8b (patch) | |
| tree | f75d419023930084ea11b919a23b935e0892fdda /test/switchlevels.c | |
| parent | fa09b0558fd30943a65c45e360703c15ec0a72e3 (diff) | |
| download | Project-Tick-7b29794c1807fcdeb1b81729a1d7ae1ac93fbd8b.tar.gz Project-Tick-7b29794c1807fcdeb1b81729a1d7ae1ac93fbd8b.zip | |
Fix type mismatch on platforms where int32_t and uint32_t use long instead of int
* Based on PR #1934
Diffstat (limited to 'test/switchlevels.c')
| -rw-r--r-- | test/switchlevels.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/switchlevels.c b/test/switchlevels.c index b31bc0f95c..2d6ca0e69b 100644 --- a/test/switchlevels.c +++ b/test/switchlevels.c @@ -9,6 +9,7 @@ # include "zlib-ng.h" #endif +#include <inttypes.h> #include <stdio.h> #if defined(_WIN32) || defined(__CYGWIN__) @@ -95,7 +96,7 @@ static int compress_chunk(PREFIX3(stream) *strm, int level, int size, int last) goto free_buf; } if (strm->avail_in != 0) { - fprintf(stderr, "deflate() did not consume %d bytes of input\n", strm->avail_in); + fprintf(stderr, "deflate() did not consume %" PRIu32 " bytes of input\n", strm->avail_in); goto free_buf; } if (write_all(buf + size, compsize - strm->avail_out) != 0) { |
