8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
size()
serializeMsgPack()
1 parent 7b1c012 commit afbcc21Copy full SHA for afbcc21
CHANGELOG.md
@@ -6,6 +6,7 @@ HEAD
6
7
* Fix compatibility with the Blynk libary (issue #1914)
8
* Fix double lookup in `to<JsonVariant>()`
9
+* Fix double call to `size()` in `serializeMsgPack()`
10
11
v6.21.2 (2023-04-12)
12
-------
src/ArduinoJson/MsgPack/MsgPackSerializer.hpp
@@ -47,7 +47,7 @@ class MsgPackSerializer : public Visitor<size_t> {
47
size_t visitArray(const CollectionData& array) {
48
size_t n = array.size();
49
if (n < 0x10) {
50
- writeByte(uint8_t(0x90 + array.size()));
+ writeByte(uint8_t(0x90 + n));
51
} else if (n < 0x10000) {
52
writeByte(0xDC);
53
writeInteger(uint16_t(n));
0 commit comments