diff --git a/ChangeLog b/ChangeLog index 81fec9c919..632bf41c67 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Mon Feb 23 15:53:30 2009 Akinori MUSHA + + * array.c (rb_ary_index, rb_ary_rindex): We know that argc is not + zero when we reach here. + + * array.c (rb_ary_initialize, rb_ary_index): Shrink a double + space. (NFC) + Mon Feb 23 14:47:04 2009 Nobuyoshi Nakada * lib/fileutils.rb (mv): added description for the case of diff --git a/array.c b/array.c index 796740eba3..696b6473b5 100644 --- a/array.c +++ b/array.c @@ -522,7 +522,7 @@ rb_ary_initialize(int argc, VALUE *argv, VALUE ary) VALUE size, val; rb_ary_modify(ary); - if (argc == 0) { + if (argc == 0) { if (ARY_OWNS_HEAP_P(ary) && RARRAY_PTR(ary)) { xfree(RARRAY_PTR(ary)); } @@ -1118,7 +1118,7 @@ rb_ary_index(int argc, VALUE *argv, VALUE ary) VALUE val; long i; - if (argc == 0) { + if (argc == 0) { RETURN_ENUMERATOR(ary, 0, 0); for (i=0; i