summaryrefslogtreecommitdiffhomepage
path: root/src/range.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-05-14 08:28:27 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-05-14 08:28:27 +0900
commit99f0adc3f47d9994a0bc783d9249fb5cf9ac2bb4 (patch)
treeffbe1f9625bfe47761cb4a845c0943bdc33bf34d /src/range.c
parentdfac706ac29643af7fa6c317790e29f9211dfa5a (diff)
downloadmruby-99f0adc3f47d9994a0bc783d9249fb5cf9ac2bb4.tar.gz
mruby-99f0adc3f47d9994a0bc783d9249fb5cf9ac2bb4.zip
range.c: refactor conditional compilation code.
So that auto indentation works.
Diffstat (limited to 'src/range.c')
-rw-r--r--src/range.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/range.c b/src/range.c
index 671598537..3ef4b14f5 100644
--- a/src/range.c
+++ b/src/range.c
@@ -25,13 +25,13 @@ r_check(mrb_state *mrb, mrb_value a, mrb_value b)
ta = mrb_type(a);
tb = mrb_type(b);
#ifdef MRB_NO_FLOAT
- if (ta == MRB_TT_INTEGER && tb == MRB_TT_INTEGER ) {
+ if (ta == MRB_TT_INTEGER && tb == MRB_TT_INTEGER ) return;
#else
if ((ta == MRB_TT_INTEGER || ta == MRB_TT_FLOAT) &&
(tb == MRB_TT_INTEGER || tb == MRB_TT_FLOAT)) {
-#endif
return;
}
+#endif
if (mrb_nil_p(a) || mrb_nil_p(b)) return;