Skip to content

Commit 05b33dd

Browse files
committed
rtc: Fix Windows x86 builds
The latest zlib does not build for Windows x86. Implement fixes that were suggested by the community at madler#620
1 parent 7c3daeb commit 05b33dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crc32.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ uLong ZEXPORT crc32_combine(crc1, crc2, len2)
10861086
uLong crc2;
10871087
z_off_t len2;
10881088
{
1089-
return crc32_combine64(crc1, crc2, len2);
1089+
return crc32_combine64(crc1, crc2, (z_off64_t)len2);
10901090
}
10911091

10921092
/* ========================================================================= */
@@ -1103,11 +1103,11 @@ uLong ZEXPORT crc32_combine_gen64(len2)
11031103
uLong ZEXPORT crc32_combine_gen(len2)
11041104
z_off_t len2;
11051105
{
1106-
return crc32_combine_gen64(len2);
1106+
return crc32_combine_gen64((z_off64_t)len2);
11071107
}
11081108

11091109
/* ========================================================================= */
1110-
uLong crc32_combine_op(crc1, crc2, op)
1110+
uLong ZEXPORT crc32_combine_op(crc1, crc2, op)
11111111
uLong crc1;
11121112
uLong crc2;
11131113
uLong op;

0 commit comments

Comments
 (0)