mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
readfloat.c: remove unused local variable
This commit is contained in:
@@ -29,7 +29,6 @@ mrb_read_float(const char *str, char **endp, double *fp)
|
||||
{
|
||||
double d = 0.0;
|
||||
int sign;
|
||||
int n = 0;
|
||||
const char *p, *a;
|
||||
|
||||
a = p = str;
|
||||
@@ -49,7 +48,6 @@ mrb_read_float(const char *str, char **endp, double *fp)
|
||||
while (*p && ISDIGIT(*p)) {
|
||||
d = d * 10.0 + (double)(*p - '0');
|
||||
p++;
|
||||
n++;
|
||||
}
|
||||
a = p;
|
||||
}
|
||||
@@ -68,7 +66,6 @@ mrb_read_float(const char *str, char **endp, double *fp)
|
||||
f += base * (*p - '0');
|
||||
base /= 10.0;
|
||||
p++;
|
||||
n++;
|
||||
}
|
||||
}
|
||||
d += f * sign;
|
||||
|
||||
Reference in New Issue
Block a user