readflt.c: small style modifications.
MODIFY
src/readflt.c
src/readflt.c
@@ -51,7 +51,8 @@ mrb_float_read(const char *str, char **end)
++n;
}
a = p;
- } else if (*p != '.')
+ }
+ else if (*p != '.')
goto done;
d *= sign;
@@ -61,8 +62,7 @@ mrb_float_read(const char *str, char **end)
double base = 0.1;
++p;
- if (ISDIGIT(*p))
- {
+ if (ISDIGIT(*p)) {
while (*p && ISDIGIT(*p)) {
f += base * (*p - '0') ;
base /= 10.0;
@@ -83,7 +83,8 @@ mrb_float_read(const char *str, char **end)
if (*p == '-') {
sign = -1;
++p;
- } else if (*p == '+')
+ }
+ else if (*p == '+')
++p;
if (ISDIGIT(*p)) {

readflt.c: small style modifications.