Fixed double formatting issue

This commit is contained in:
Benoit Blanchon committed 2014-11-01 13:30:37 +01:00
1 parent 825ab0357e
commit 9da7dce310
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -117,9 +117,9 @@ void JsonParser::parseNumberTo(JsonValue &destination) {
if (*endOfLong == '.') {
// stopped on a decimal separator
double douleValue = strtod(_ptr, &_ptr);
double doubleValue = strtod(_ptr, &_ptr);
int decimals = _ptr - endOfLong - 1;
destination.set(douleValue, decimals);
destination.set(doubleValue, decimals);
} else {
_ptr = endOfLong;
destination = longValue;