Fix parsing of infinity value

This commit is contained in:
Alexey Andreev 2015-06-15 20:47:45 +03:00
parent 69ac393068
commit a7e69cc8e2

View File

@ -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;
} }