diff --git a/ChangeLog b/ChangeLog index 8b2b749a97..2654984b9d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sun Dec 31 16:22:48 2006 Eric Hodel + + * array.c: Fix Array#reject. + Sun Dec 31 00:46:25 2006 Tadayoshi Funaba * lib/date2.rb: removed. diff --git a/array.c b/array.c index a31c10de59..9d5118d2cf 100644 --- a/array.c +++ b/array.c @@ -1942,7 +1942,9 @@ static VALUE rb_ary_reject(VALUE ary) { RETURN_ENUMERATOR(ary, 0, 0); - return rb_ary_reject_bang(rb_ary_dup(ary)); + ary = rb_ary_dup(ary); + rb_ary_reject_bang(ary); + return ary; } /*