mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
String: add missing long long operator implementations (#7888)
This commit is contained in:
parent
d41b4037cc
commit
a5308d6ef4
@ -435,6 +435,20 @@ StringSumHelper &operator +(const StringSumHelper &lhs, unsigned long num) {
|
|||||||
return a;
|
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 &operator +(const StringSumHelper &lhs, float num) {
|
||||||
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
|
StringSumHelper &a = const_cast<StringSumHelper &>(lhs);
|
||||||
if (!a.concat(num))
|
if (!a.concat(num))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user