LZMA: fix is check missing parentheses
This commit is contained in:
@@ -27,7 +27,7 @@ class LZMA
|
|||||||
#end
|
#end
|
||||||
#elseif js
|
#elseif js
|
||||||
var data = untyped #if haxe4 js.Syntax.code #else __js__ #end ("LZMA.compress")(new UInt8Array(bytes.getData()), 5);
|
var data = untyped #if haxe4 js.Syntax.code #else __js__ #end ("LZMA.compress")(new UInt8Array(bytes.getData()), 5);
|
||||||
if (data is String)
|
if ((data is String))
|
||||||
{
|
{
|
||||||
return Bytes.ofString(data);
|
return Bytes.ofString(data);
|
||||||
}
|
}
|
||||||
@@ -60,7 +60,7 @@ class LZMA
|
|||||||
#end
|
#end
|
||||||
#elseif js
|
#elseif js
|
||||||
var data = untyped #if haxe4 js.Syntax.code #else __js__ #end ("LZMA.decompress")(new UInt8Array(bytes.getData()));
|
var data = untyped #if haxe4 js.Syntax.code #else __js__ #end ("LZMA.decompress")(new UInt8Array(bytes.getData()));
|
||||||
if (data is String)
|
if ((data is String))
|
||||||
{
|
{
|
||||||
return Bytes.ofString(data);
|
return Bytes.ofString(data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user