Avoid signedness change warning in test/minigzip.c.

This commit is contained in:
Mark Adler 2024-02-09 16:46:55 -08:00
parent 7a7202de35
commit 1bff6f0fd5

View File

@ -426,7 +426,7 @@ static void file_compress(char *file, char *mode) {
} }
end = string_copy(outfile, file, sizeof(outfile)); 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"); in = fopen(file, "rb");
if (in == NULL) { if (in == NULL) {