summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/range.c b/range.c
index 4b8d14e2c9..3f87e7e268 100644
--- a/range.c
+++ b/range.c
@@ -1472,9 +1472,11 @@ r_cover_range_p(VALUE range, VALUE beg, VALUE end, VALUE val)
if (EXCL(range) == EXCL(val)) {
return cmp_end >= 0;
- } else if (EXCL(range)) {
+ }
+ else if (EXCL(range)) {
return cmp_end > 0;
- } else if (cmp_end >= 0) {
+ }
+ else if (cmp_end >= 0) {
return TRUE;
}