Fixed warnings in Visual Studio

This commit is contained in:
Benoit Blanchon
2014-11-04 16:48:23 +01:00
parent 64529bb1a3
commit 782b178f4e
2 changed files with 9 additions and 9 deletions

View File

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