Skip to content

Commit 7f3e703

Browse files
committed
Fix float conversion warning in String::toFloat.
1 parent d136bce commit 7f3e703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎cores/esp32/WString.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,7 @@ long String::toInt(void) const{
910910

911911
floatString::toFloat(void) const{
912912
if (buffer()){
913-
returnatof(buffer());
913+
returnstatic_cast<float>(atof(buffer()));
914914
}
915915
return0;
916916
}

0 commit comments

Comments
(0)