Skip to content

Commit 998edec

Browse files
authored
Fixed error when using the ZipLib binary format
When using the compressed deserialize method it wrongly used the text-based LoadFromStream instead of the binary LoadFromBinaryStream method.
1 parent 076d755 commit 998edec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimpleJSONBinary.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public static JSONNode DeserializeBinary(System.IO.BinaryReader aReader)
168168
public static JSONNode LoadFromCompressedStream(System.IO.Stream aData)
169169
{
170170
var zin = new ICSharpCode.SharpZipLib.BZip2.BZip2InputStream(aData);
171-
return LoadFromStream(zin);
171+
return LoadFromBinaryStream(zin);
172172
}
173173
public static JSONNode LoadFromCompressedFile(string aFileName)
174174
{

0 commit comments

Comments
 (0)