From 156585773dd588c919efde5c81024aadbdf88205 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Sat, 1 Jan 2022 06:07:10 -0500 Subject: [PATCH] Temporary cast fix --- 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 1f8cb678..df5043ae 100644 --- a/BeefLibs/MiniZ/src/Zip.bf +++ b/BeefLibs/MiniZ/src/Zip.bf @@ -637,7 +637,7 @@ namespace MiniZ static uint32 deflateBound(ZipStream* pStream, uint32 source_len) { // This is really over conservative. (And lame, but it's actually pretty tricky to compute a true upper bound given the way tdefl's blocking works.) - return Math.Max(128 + (source_len * 110) / 100, 128 + source_len + ((source_len / (31 * 1024)) + 1) * 5); + return (.)Math.Max(128 + (source_len * 110) / 100, 128 + source_len + ((source_len / (31 * 1024)) + 1) * 5); } public static ReturnStatus Compress(uint8* pDest, ref int pDest_len, uint8* pSource, int source_len, CompressionLevel level)