mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-23 00:24:11 -08:00
Fix parsing of infinity value
This commit is contained in:
parent
69ac393068
commit
a7e69cc8e2
|
@ -245,6 +245,7 @@ public class TDecimalFormat extends TNumberFormat {
|
||||||
position.setErrorIndex(index);
|
position.setErrorIndex(index);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
position.setIndex(index);
|
||||||
return positive ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;
|
return positive ? Double.POSITIVE_INFINITY : Double.NEGATIVE_INFINITY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user