From 4b058cac0c8b79a02643223c42b17930a43eef83 Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 3 Nov 2021 20:52:12 +0100 Subject: [PATCH] Fix double promotion in Stream::parseFloat() See title --- cores/esp32/Stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp32/Stream.cpp b/cores/esp32/Stream.cpp index 7d1649a6fb5..f412e461195 100644 --- a/cores/esp32/Stream.cpp +++ b/cores/esp32/Stream.cpp @@ -256,7 +256,7 @@ float Stream::parseFloat(char skipChar) } else if(c >= '0' && c <= '9') { // is c a digit? value = value * 10 + c - '0'; if(isFraction) { - fraction *= 0.1; + fraction *= 0.1f; } } read(); // consume the character we got with peek