Fixed warnings in Visual Studio

This commit is contained in:
Benoit Blanchon committed 2014-11-04 19:53:13 +01:00
1 parent 64529bb1a3
commit 782b178f4e
2 files changed
+9 -9

No files matched your search

+1 -1
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;