1
0
Fork 0
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:
nobu 2007-10-19 01:57:49 +00:00
parent c2aee4c878
commit 5725135274

View file

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