From 5793ccef066a943bddeefc1dd1498eb6928c6a9e Mon Sep 17 00:00:00 2001 From: yck1509 Date: Sun, 21 Dec 2014 16:37:43 +0800 Subject: [PATCH] Minor modification of LZMA runtime --- Confuser.Runtime/Lzma.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);