mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Removed implicit conversion in comparison operators (issue #998)
This commit is contained in:
@@ -23,6 +23,11 @@ class StlStringAdapter {
|
||||
return false;
|
||||
}
|
||||
|
||||
int8_t compare(const char* other) const {
|
||||
if (!other) return 1;
|
||||
return static_cast<int8_t>(_str->compare(other));
|
||||
}
|
||||
|
||||
bool equals(const char* expected) const {
|
||||
if (!expected) return false;
|
||||
return *_str == expected;
|
||||
|
||||
Reference in New Issue
Block a user