From 1bff6f0fd500ab2556b235adebe8a376b0cd85a1 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Feb 2024 16:46:55 -0800 Subject: [PATCH] Avoid signedness change warning in test/minigzip.c. --- test/minigzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/minigzip.c b/test/minigzip.c index d5173b5..ec86e3f 100644 --- a/test/minigzip.c +++ b/test/minigzip.c @@ -426,7 +426,7 @@ static void file_compress(char *file, char *mode) { } end = string_copy(outfile, file, sizeof(outfile)); - string_copy(end, GZ_SUFFIX, (outfile + sizeof(outfile)) - end); + string_copy(end, GZ_SUFFIX, sizeof(outfile) - (z_size_t)(end - outfile)); in = fopen(file, "rb"); if (in == NULL) {