correctly deserialize negatives

This commit is contained in:
nickgkg
2021-01-01 08:40:33 +01:00
committed by Jindra Petřík
parent b20eeafe53
commit 01fee76d81
@@ -675,12 +675,7 @@ public class SWFInputStream implements AutoCloseable {
newDumpLevel(name, "FIXED8");
int afterPoint = readEx();
int beforePoint = readSI8Internal();
float ret;
if (beforePoint < 0) {
ret = beforePoint - ((float) afterPoint) / 256;
} else {
ret = beforePoint + ((float) afterPoint) / 256;
}
float ret = beforePoint + ((float) afterPoint) / 256;
endDumpLevel(ret);
return ret;
}