LZMA: fix is check missing parentheses

This commit is contained in:
Josh Tynjala
2024-09-10 11:10:34 -07:00
parent c4a9bb81b5
commit dd79e5852a

View File

@@ -27,7 +27,7 @@ class LZMA
#end
#elseif js
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);
}
@@ -60,7 +60,7 @@ class LZMA
#end
#elseif js
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);
}