Parcourir la source

Reorder `StringNode`'s members to reduce code size

Benoit Blanchon il y a 2 ans
Parent
commit
26b2ff4c0f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/ArduinoJson/Memory/StringNode.hpp

+ 1 - 1
src/ArduinoJson/Memory/StringNode.hpp

@@ -22,8 +22,8 @@ struct StringNode {
   using length_type = uint_t<ARDUINOJSON_STRING_LENGTH_SIZE * 8>::type;
 
   struct StringNode* next;
-  length_type length;
   references_type references;
+  length_type length;
   char data[1];
 
   static constexpr size_t maxLength = numeric_limits<length_type>::highest();