Now use uint8_t to store decimal count

This commit is contained in:
Benoit Blanchon
2014-11-03 18:28:24 +01:00
parent 2f8fde6772
commit 04cde11a04
6 changed files with 7 additions and 6 deletions

View File

@ -118,7 +118,7 @@ void JsonParser::parseNumberTo(JsonValue &destination) {
if (*endOfLong == '.') {
// stopped on a decimal separator
double doubleValue = strtod(_ptr, &_ptr);
int decimals = _ptr - endOfLong - 1;
uint8_t decimals = _ptr - endOfLong - 1;
destination.set(doubleValue, decimals);
} else {
_ptr = endOfLong;