From 8ff8911d7fdc7000a856244f5771025cd2def76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Podg=C3=B3rski?= Date: Tue, 28 Nov 2023 18:35:08 +0100 Subject: [PATCH] Update miniz.h --- src/miniz.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/miniz.h b/src/miniz.h index 523b1a6..bbe74fe 100644 --- a/src/miniz.h +++ b/src/miniz.h @@ -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