mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* array.c (rb_ary_pop_m): use enum ary_take_pos_flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c0b21b7b9
commit
a89d928bfb
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Dec 17 15:44:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* array.c (rb_ary_pop_m): use enum ary_take_pos_flags.
|
||||||
|
|
||||||
Wed Dec 17 15:35:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
Wed Dec 17 15:35:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
* configure.in (OBJDUMP, OBJCOPY):
|
* configure.in (OBJDUMP, OBJCOPY):
|
||||||
|
|
2
array.c
2
array.c
|
@ -743,7 +743,7 @@ rb_ary_pop_m(int argc, VALUE *argv, VALUE ary)
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_ary_modify_check(ary);
|
rb_ary_modify_check(ary);
|
||||||
result = ary_take_first_or_last(argc, argv, ary, Qtrue);
|
result = ary_take_first_or_last(argc, argv, ary, ARY_TAKE_LAST);
|
||||||
ARY_INCREASE_LEN(ary, -RARRAY_LEN(result));
|
ARY_INCREASE_LEN(ary, -RARRAY_LEN(result));
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue