summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/range.c b/range.c
index a3f8865..74ac972 100644
--- a/range.c
+++ b/range.c
@@ -21,11 +21,7 @@ static VALUE
range_check(args)
VALUE *args;
{
- VALUE v = rb_funcall(args[0], rb_intern("<="), 1, args[1]);
-
- if (!RTEST(v)) {
- Fail(""); /* no ascending values */
- }
+ rb_funcall(args[0], rb_intern("<=>"), 1, args[1]);
return Qnil;
}