forked from bblanchon/ArduinoJson
Fixed "pointless integer comparison" warning on IAR (issue #1233)
This commit is contained in:
@ -6,6 +6,7 @@ HEAD
|
|||||||
|
|
||||||
* Fixed "maybe-uninitialized" warning (issue #1217)
|
* Fixed "maybe-uninitialized" warning (issue #1217)
|
||||||
* Fixed "statement is unreachable" warning on IAR (issue #1233)
|
* Fixed "statement is unreachable" warning on IAR (issue #1233)
|
||||||
|
* Fixed "pointless integer comparison" warning on IAR (issue #1233)
|
||||||
|
|
||||||
v6.15.0 (2020-03-22)
|
v6.15.0 (2020-03-22)
|
||||||
-------
|
-------
|
||||||
|
@ -125,7 +125,13 @@ class MsgPackSerializer {
|
|||||||
} else if (value <= 0xFFFF) {
|
} else if (value <= 0xFFFF) {
|
||||||
writeByte(0xCD);
|
writeByte(0xCD);
|
||||||
writeInteger(uint16_t(value));
|
writeInteger(uint16_t(value));
|
||||||
} else if (value <= 0xFFFFFFFF) {
|
}
|
||||||
|
#if ARDUINOJSON_USE_LONG_LONG
|
||||||
|
else if (value <= 0xFFFFFFFF)
|
||||||
|
#else
|
||||||
|
else
|
||||||
|
#endif
|
||||||
|
{
|
||||||
writeByte(0xCE);
|
writeByte(0xCE);
|
||||||
writeInteger(uint32_t(value));
|
writeInteger(uint32_t(value));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user