mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 07:36:09 +00:00
correctly deserialize negatives
This commit is contained in:
@@ -675,12 +675,7 @@ public class SWFInputStream implements AutoCloseable {
|
||||
public float readFIXED8(String name) throws IOException {
|
||||
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;
|
||||
int beforePoint = readSI8Internal();
|
||||
float ret = beforePoint + ((float) afterPoint) / 256;
|
||||
endDumpLevel(ret);
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user