diff --git a/classlib/src/main/java/org/teavm/classlib/java/lang/TByte.java b/classlib/src/main/java/org/teavm/classlib/java/lang/TByte.java index 1c0bf1fde..fcda05c41 100644 --- a/classlib/src/main/java/org/teavm/classlib/java/lang/TByte.java +++ b/classlib/src/main/java/org/teavm/classlib/java/lang/TByte.java @@ -135,7 +135,7 @@ public static TByte valueOf(String s) throws TNumberFormatException { public static TByte decode(String nm) throws TNumberFormatException { TInteger value = TInteger.decode(nm); - if (value.intValue() < MIN_VALUE || value.intValue() >= MAX_VALUE) { + if (value.intValue() < MIN_VALUE || value.intValue() > MAX_VALUE) { throw new TNumberFormatException(); } return TByte.valueOf((byte) value.intValue());