personal style preference on function call in flo_to_s

parent 215069d0
...@@ -270,15 +270,11 @@ mrb_flo_to_str(mrb_state *mrb, mrb_float n, int max_digit) ...@@ -270,15 +270,11 @@ mrb_flo_to_str(mrb_state *mrb, mrb_float n, int max_digit)
static mrb_value static mrb_value
flo_to_s(mrb_state *mrb, mrb_value flt) flo_to_s(mrb_state *mrb, mrb_value flt)
{ {
int max_digit;
#ifdef MRB_USE_FLOAT #ifdef MRB_USE_FLOAT
max_digit = 7; return mrb_flo_to_str(mrb, mrb_float(flt), 7);
#else #else
max_digit = 14; return mrb_flo_to_str(mrb, mrb_float(flt), 14);
#endif #endif
return mrb_flo_to_str(mrb, mrb_float(flt), max_digit);
} }
/* 15.2.9.3.2 */ /* 15.2.9.3.2 */
......
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