mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 08:48:27 +01:00
Added tests for Flash strings (closes #1070)
This commit is contained in:
@@ -14,7 +14,7 @@ class FlashStringAdapter {
|
||||
if (!other && !_str) return 0;
|
||||
if (!_str) return -1;
|
||||
if (!other) return 1;
|
||||
return -strcmp_P(other, reinterpret_cast<const char*>(_str));
|
||||
return int8_t(-strcmp_P(other, reinterpret_cast<const char*>(_str)));
|
||||
}
|
||||
|
||||
bool equals(const char* expected) const {
|
||||
|
||||
Reference in New Issue
Block a user