summaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-13 09:04:32 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-03-13 09:04:32 +0000
commit056f219ecaa8daa50a77d28bed49fb5a4bf75928 (patch)
tree331b0dad1cf037e44c5fd9841d02145a86d3494c /range.c
parent107ead2b961452a8df2d0b63eda34b45d9b4ef75 (diff)
1.1b9_02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;
}