mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* range.c (range_last): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2aee4c878
commit
5725135274
1 changed files with 1 additions and 4 deletions
5
range.c
5
range.c
|
@ -516,12 +516,9 @@ range_first(int argc, VALUE *argv, VALUE range)
|
|||
static VALUE
|
||||
range_last(int argc, VALUE *argv, VALUE range)
|
||||
{
|
||||
VALUE n, a;
|
||||
long i, nelem, len;
|
||||
VALUE rb_ary_last(int, VALUE *, VALUE);
|
||||
|
||||
if (argc == 0) return RANGE_END(range);
|
||||
|
||||
rb_scan_args(argc, argv, "1", &n);
|
||||
return rb_ary_last(argc, argv, rb_Array(range));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue