summaryrefslogtreecommitdiffstats
path: root/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'strtod.c')
-rw-r--r--strtod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/strtod.c b/strtod.c
index 457cbcd9a..81e5d42d1 100644
--- a/strtod.c
+++ b/strtod.c
@@ -47,14 +47,14 @@ double strtod_flags(const char *str, const char **ptr, unsigned int flags)
switch (c) {
case '-':
sign = 1;
- /* fallthrough */
+ /* fallthrough */
case '+':
c = *p++;
}
}
/* Mantissa */
- for (;;c = *p++) {
+ for (;; c = *p++) {
if ((c == '.' && !(flags & STRTOD_NO_DOT)) ||
(c == ',' && !(flags & STRTOD_NO_COMMA))) {
if (dot)
@@ -85,7 +85,7 @@ double strtod_flags(const char *str, const char **ptr, unsigned int flags)
switch (c) {
case '-':
esign = 1;
- /* fallthrough */
+ /* fallthrough */
case '+':
c = *ep++;
}
@@ -118,7 +118,7 @@ done:
if (!numbers)
goto no_conversion;
if (ptr)
- *ptr = p-1;
+ *ptr = p - 1;
return (sign ? -val : val) / decimal;
no_conversion: