mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
1.1b9_02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
107ead2b96
commit
056f219eca
8 changed files with 38 additions and 24 deletions
6
range.c
6
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue