range.c: refactor conditional compilation code.

So that auto indentation works.
parent dfac706a
...@@ -25,13 +25,13 @@ r_check(mrb_state *mrb, mrb_value a, mrb_value b) ...@@ -25,13 +25,13 @@ r_check(mrb_state *mrb, mrb_value a, mrb_value b)
ta = mrb_type(a); ta = mrb_type(a);
tb = mrb_type(b); tb = mrb_type(b);
#ifdef MRB_NO_FLOAT #ifdef MRB_NO_FLOAT
if (ta == MRB_TT_INTEGER && tb == MRB_TT_INTEGER ) { if (ta == MRB_TT_INTEGER && tb == MRB_TT_INTEGER ) return;
#else #else
if ((ta == MRB_TT_INTEGER || ta == MRB_TT_FLOAT) && if ((ta == MRB_TT_INTEGER || ta == MRB_TT_FLOAT) &&
(tb == MRB_TT_INTEGER || tb == MRB_TT_FLOAT)) { (tb == MRB_TT_INTEGER || tb == MRB_TT_FLOAT)) {
#endif
return; return;
} }
#endif
if (mrb_nil_p(a) || mrb_nil_p(b)) return; if (mrb_nil_p(a) || mrb_nil_p(b)) return;
......
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