We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27eb7ef commit 3f4b174Copy full SHA for 3f4b174
hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_noniso.c
@@ -49,7 +49,7 @@ long atol(const char* s)
49
double atof(const char* s)
50
{
51
double result = 0;
52
- double sign = 1;
+ double factor = 1.0;
53
54
while (*s == ' ' || *s == '\t' || *s == '\r' || *s == '\n')
55
++s;
@@ -59,7 +59,7 @@ double atof(const char* s)
59
60
if (*s == '-')
61
62
- sign = -1;
+ factor = -1.0;
63
64
}
65
if (*s == '+')
@@ -68,7 +68,6 @@ double atof(const char* s)
68
69
70
bool decimals = false;
71
- double factor = 1.0;
72
char c;
73
while((c = *s))
74
0 commit comments