1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 1998-03-13 09:04:32 +00:00
parent 107ead2b96
commit 056f219eca
8 changed files with 38 additions and 24 deletions

View file

@ -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;
}