mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
Fix bug in Float.intBitsToFloat
This commit is contained in:
parent
3a0db006bb
commit
ed6e6ae373
|
@ -277,7 +277,7 @@ public class TFloat extends TNumber implements TComparable<TFloat> {
|
|||
}
|
||||
}
|
||||
boolean negative = (bits & (1 << 31)) != 0;
|
||||
int rawExp = ((bits >> 23) & 0x7F8) - 127;
|
||||
int rawExp = (bits >> 23) & 0xFF;
|
||||
int mantissa = bits & 0x7FFFFF;
|
||||
if (rawExp == 0) {
|
||||
mantissa <<= 1;
|
||||
|
|
Loading…
Reference in New Issue
Block a user