diff --git a/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TFloat.java b/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TFloat.java index 6e226e54b..56ab410de 100644 --- a/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TFloat.java +++ b/teavm-classlib/src/main/java/org/teavm/classlib/java/lang/TFloat.java @@ -277,7 +277,7 @@ public class TFloat extends TNumber implements TComparable { } } 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;