From 7ecf7c7458578d05a20fa481436dd5c58db112f7 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Sat, 4 Jun 2022 15:02:40 -0700 Subject: [PATCH] Fix odd error in Visual C compiler preventing automatic promotion. --- crc32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crc32.c b/crc32.c index 6191340..561d0fe 100644 --- a/crc32.c +++ b/crc32.c @@ -1086,7 +1086,7 @@ uLong ZEXPORT crc32_combine(crc1, crc2, len2) uLong crc2; z_off_t len2; { - return crc32_combine64(crc1, crc2, len2); + return crc32_combine64(crc1, crc2, (z_off64_t)len2); } /* ========================================================================= */ @@ -1103,7 +1103,7 @@ uLong ZEXPORT crc32_combine_gen64(len2) uLong ZEXPORT crc32_combine_gen(len2) z_off_t len2; { - return crc32_combine_gen64(len2); + return crc32_combine_gen64((z_off64_t)len2); } /* ========================================================================= */