diff --git a/Confuser.Runtime/Lzma.cs b/Confuser.Runtime/Lzma.cs index 15078b8ac..a622e4d3e 100644 --- a/Confuser.Runtime/Lzma.cs +++ b/Confuser.Runtime/Lzma.cs @@ -40,7 +40,7 @@ public static byte[] Decompress(byte[] data) { int v = s.ReadByte(); outSize |= ((long)(byte)v) << (8 * i); } - var b = new byte[outSize]; + var b = new byte[(int)outSize]; var z = new MemoryStream(b, true); long compressedSize = s.Length - 13; decoder.Code(s, z, compressedSize, outSize);