From a89d928bfb89cea28dfaf566cf768cf541f7e916 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 17 Dec 2008 06:52:18 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ array.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2eba2b8269..e2bee6c22c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Dec 17 15:44:28 2008 Yukihiro Matsumoto + + * array.c (rb_ary_pop_m): use enum ary_take_pos_flags. + Wed Dec 17 15:35:39 2008 Yuki Sonoda (Yugui) * configure.in (OBJDUMP, OBJCOPY): diff --git a/array.c b/array.c index 578f7fae90..535cfd0605 100644 --- a/array.c +++ b/array.c @@ -743,7 +743,7 @@ rb_ary_pop_m(int argc, VALUE *argv, VALUE 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)); return result; }