forked from bblanchon/ArduinoJson
Fixed warning with GCC
This commit is contained in:
@ -115,7 +115,8 @@ void JsonVariant::writeTo(T &writer) const {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default: // >= JSON_DOUBLE_0_DECIMALS
|
default: // >= JSON_DOUBLE_0_DECIMALS
|
||||||
writer.writeDouble(_content.asDouble, _type - JSON_DOUBLE_0_DECIMALS);
|
uint8_t decimals = static_cast<uint8_t>(_type - JSON_DOUBLE_0_DECIMALS);
|
||||||
|
writer.writeDouble(_content.asDouble, decimals);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user