Update WString.cpp (#1936)
This commit is contained in:
parent
2132d9f809
commit
1bc1e8c602
@ -882,6 +882,12 @@ float String::toFloat(void) const
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double String::toDouble(void) const {
|
||||||
|
if (buffer) {
|
||||||
|
return atof(buffer);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned char String::equalsConstantTime(const String &s2) const {
|
unsigned char String::equalsConstantTime(const String &s2) const {
|
||||||
// To avoid possible time-based attacks present function
|
// To avoid possible time-based attacks present function
|
||||||
|
Loading…
Reference in New Issue
Block a user