Skip to content

Commit

Permalink
Update miniz.h
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-- committed Nov 28, 2023
1 parent eaa4dfd commit 8ff8911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/miniz.h
Original file line number Diff line number Diff line change
Expand Up @@ -2149,8 +2149,9 @@ int mz_compress2(unsigned char *pDest, mz_ulong *pDest_len,
mz_stream stream;
memset(&stream, 0, sizeof(stream));

#ifndef __MINGW32__
#if defined(__MINGW32__) || defined(__MINGW64__) defined(__WATCOMC__)
/* In case mz_ulong is 64-bits (argh I hate longs). */
#else
if ((mz_uint64)(source_len | *pDest_len) > 0xFFFFFFFFU)
return MZ_PARAM_ERROR;
#endif
Expand Down

0 comments on commit 8ff8911

Please sign in to comment.