Skip to content

Commit

Permalink
Fix odd error in Visual C compiler preventing automatic promotion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Adler committed Jun 4, 2022
1 parent 6c532a8 commit 7ecf7c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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,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);
}

/* ========================================================================= */
Expand Down

0 comments on commit 7ecf7c7

Please sign in to comment.