Revert "those should be size_t"

This reverts commit b357c09171.
This commit is contained in:
Alug committed 2024-10-25 19:49:26 +02:00
1 parent b862d835a5
commit 2bda27b80d
1 file changed
+11 -3
+11 -3
View File
@@ -451,8 +451,16 @@ lzf_compress (const void *const in_data, size_t in_len,
* and fails to support both assumptions is windows 64 bit, we make a
* special workaround for it.
*/
size_t off;
#if defined (_WIN32) && defined (_M_X64)
/* workaround for missing POSIX compliance */
#if __GNUC__
unsigned long long off;
#else
unsigned __int64 off;
#endif
#else
unsigned long off;
#endif
unsigned int hval;
int lit;
@@ -490,7 +498,7 @@ lzf_compress (const void *const in_data, size_t in_len,
{
/* match found at *ref++ */
unsigned int len = 2;
size_t maxlen = in_end - ip - len;
unsigned int maxlen = in_end - ip - len;
maxlen = maxlen > LZF_MAX_REF ? LZF_MAX_REF : maxlen;
if (expect_false (op + 3 + 1 >= out_end)) /* first a faster conservative test */