Skip to content

Commit

Permalink
rtc: Fix Windows x86 builds
Browse files Browse the repository at this point in the history
The latest zlib does not build for Windows x86. Implement fixes that
were suggested by the community at
madler#620
  • Loading branch information
chri7325 committed Apr 13, 2022
1 parent 7c3daeb commit 05b33dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/* ========================================================================= */
Expand All @@ -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;
Expand Down

0 comments on commit 05b33dd

Please sign in to comment.