Closed d-a-v closed 2 months ago
When emulating Arduino API on 64 bits host, size_t and unsigned int are different.
size_t
unsigned int
Arduino's String is then not recognized by StringTraits thus preventing compilation with tons of errors.
String
StringTraits
This proposal adds the missing matching. It changes nothing when compiling on 32 bits archs.
This issue was introduced by c89a2025ce11ff741a75567ce676e8f3b9cdd761.
coverage: 99.581%. remained the same when pulling 0f34ee4abc87596ddf272f4eb2a5826321d70d8e on d-a-v:ArduinoStringEmulatedOn64bits into 0741bd9e680b39a01621dd3aba32753b60526c37 on bblanchon:6.x.
I manually squashed and merged the PR into the 6.x and 7.x branches. Thank you for this contribution.
6.x
7.x
This feature is available in ArduinoJson 7.1.0
When emulating Arduino API on 64 bits host,
size_t
andunsigned int
are different.Arduino's
String
is then not recognized byStringTraits
thus preventing compilation with tons of errors.This proposal adds the missing matching. It changes nothing when compiling on 32 bits archs.
This issue was introduced by c89a2025ce11ff741a75567ce676e8f3b9cdd761.