Skip to content

Commit a5308d6

Browse files
authored
String: add missing long long operator implementations (#7888)
1 parent d41b403 commit a5308d6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: cores/esp8266/WString.cpp

+14
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,20 @@ StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long num) {
435435
return a;
436436
}
437437

438+
StringSumHelper &operator +(const StringSumHelper &lhs, long long num) {
439+
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
440+
if (!a.concat(num))
441+
a.invalidate();
442+
return a;
443+
}
444+
445+
StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long long num) {
446+
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
447+
if (!a.concat(num))
448+
a.invalidate();
449+
return a;
450+
}
451+
438452
StringSumHelper &operator +(const StringSumHelper &lhs, float num) {
439453
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
440454
if (!a.concat(num))

0 commit comments

Comments
 (0)