mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 23:25:35 +00:00
Fixed: AS3 - AIR float support incorrectly writes float values to output stream
This commit is contained in:
@@ -248,7 +248,11 @@ public class ABCOutputStream extends OutputStream {
|
||||
* @throws IOException On I/O error
|
||||
*/
|
||||
public void writeFloat(float value) throws IOException {
|
||||
writeU16(Float.floatToIntBits(value));
|
||||
int val = Float.floatToIntBits(value);
|
||||
write(val & 0xFF);
|
||||
write((val >> 8) & 0xFF);
|
||||
write((val >> 16) & 0xFF);
|
||||
write((val >> 24) & 0xFF);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user