Unverified Commit ef3b5391 authored by Tomás Pollak's avatar Tomás Pollak Committed by GitHub

Prevent 'mixed declarations and code' C90 warning

parent bcb8e297
......@@ -207,12 +207,13 @@ flo_to_s(mrb_state *mrb, mrb_value flt)
char fmt[] = "%." MRB_STRINGIZE(FLO_TO_STR_PREC) "g";
mrb_value str = mrb_float_to_str(mrb, flt, fmt);
mrb_int len;
char *p;
char *begp;
char *endp;
insert_dot_zero:
begp = RSTRING_PTR(str);
len = RSTRING_LEN(str);
char *p, *endp;
for (p = begp, endp = p + len; p < endp; ++p) {
if (*p == '.') {
return str;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment