From 05b33dd27dbbfc9360d5c2430e228d7dc48f92f6 Mon Sep 17 00:00:00 2001 From: "Christian O. Venegas" Date: Tue, 12 Apr 2022 17:19:40 -0700 Subject: [PATCH] rtc: Fix Windows x86 builds The latest zlib does not build for Windows x86. Implement fixes that were suggested by the community at https://github.com/madler/zlib/issues/620 --- crc32.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crc32.c b/crc32.c index a1bdce5c2..15377b551 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,11 +1103,11 @@ 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); } /* ========================================================================= */ -uLong crc32_combine_op(crc1, crc2, op) +uLong ZEXPORT crc32_combine_op(crc1, crc2, op) uLong crc1; uLong crc2; uLong op;