Skip to content

Commit

Permalink
String: add missing long long operator implementations (#7888)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v committed Feb 19, 2021
1 parent d41b403 commit a5308d6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cores/esp8266/WString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,20 @@ StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long num) {
return a;
}

StringSumHelper &operator +(const StringSumHelper &lhs, long long num) {
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
if (!a.concat(num))
a.invalidate();
return a;
}

StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long long num) {
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
if (!a.concat(num))
a.invalidate();
return a;
}

StringSumHelper &operator +(const StringSumHelper &lhs, float num) {
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
if (!a.concat(num))
Expand Down

0 comments on commit a5308d6

Please sign in to comment.