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