From ab5d11c2161e0884db56e5561cff780caf722519 Mon Sep 17 00:00:00 2001 From: Fusioon Date: Fri, 24 Oct 2025 02:11:24 +0200 Subject: [PATCH] Fix MiniZ HuffDecode in tinfl_decompress --- BeefLibs/MiniZ/src/Zip.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefLibs/MiniZ/src/Zip.bf b/BeefLibs/MiniZ/src/Zip.bf index 6a9ac3915..b24777dbc 100644 --- a/BeefLibs/MiniZ/src/Zip.bf +++ b/BeefLibs/MiniZ/src/Zip.bf @@ -1143,7 +1143,7 @@ namespace MiniZ code_len = TINFL_FAST_LOOKUP_BITS; repeat { - temp = (uint16)pHuff.m_tree[~temp + (int32)((bit_buf >> code_len++) & 1)]; + temp = pHuff.m_tree[~temp + (int32)((bit_buf >> code_len++) & 1)]; } while ((temp < 0) && (num_bits >= (code_len + 1))); if (temp >= 0)