mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 10:17:15 +02:00
Fix double promotion in Stream::parseFloat() (#5846)
This commit is contained in:
@ -256,7 +256,7 @@ float Stream::parseFloat(char skipChar)
|
|||||||
} else if(c >= '0' && c <= '9') { // is c a digit?
|
} else if(c >= '0' && c <= '9') { // is c a digit?
|
||||||
value = value * 10 + c - '0';
|
value = value * 10 + c - '0';
|
||||||
if(isFraction) {
|
if(isFraction) {
|
||||||
fraction *= 0.1;
|
fraction *= 0.1f;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
read(); // consume the character we got with peek
|
read(); // consume the character we got with peek
|
||||||
|
Reference in New Issue
Block a user