[mkgmap-dev] Convert.java bug fix
From Alin Năstac alin.nastac at gmail.com on Tue May 24 20:55:56 BST 2011
Ahoy there, I've found a bug in function parseDouble. In short, the function is unable to parse float numbers such as ".12" or "12.". This simple patch fixes the issue: --- Convert.java.old 2011-05-24 21:37:52.000000000 +0200 +++ Convert.java 2011-05-24 21:38:31.000000000 +0200 @@ -180,7 +180,7 @@ if (isNegative) decimal = -decimal; - if (decimalPoint > 0) + if (decimalPoint >= 0 && decimalPoint < i - 1) return decimal / PowersOfTen[i - decimalPoint - 2]; else return decimal; Cheers, Alin
- Previous message: [mkgmap-dev] Commit: r1954: Let LineSplitter return at most connected ways
- Next message: [mkgmap-dev] Convert.java bug fix
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list