1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Temporary cast fix

This commit is contained in:
Brian Fiete 2022-01-01 06:07:10 -05:00
parent ba0c23b8c5
commit 156585773d

View file

@ -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)