ruby-changes:30607
From: kazu <ko1@a...>
Date: Mon, 26 Aug 2013 13:13:51 +0900 (JST)
Subject: [ruby-changes:30607] kazu:r42686 (trunk): * array.c (ary_ensure_room_for_push): fix typo in r42658.
kazu 2013-08-26 13:13:46 +0900 (Mon, 26 Aug 2013) New Revision: 42686 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42686 Log: * array.c (ary_ensure_room_for_push): fix typo in r42658. Modified files: trunk/ChangeLog trunk/array.c Index: array.c =================================================================== --- array.c (revision 42685) +++ array.c (revision 42686) @@ -353,7 +353,7 @@ ary_ensure_room_for_push(VALUE ary, long https://github.com/ruby/ruby/blob/trunk/array.c#L353 if (ARY_SHARED_P(ary)) { if (new_len > RARRAY_EMBED_LEN_MAX) { VALUE shared = ARY_SHARED(ary); - if (ARY_SHARED_OCCUPIED(ary)) { + if (ARY_SHARED_OCCUPIED(shared)) { if (RARRAY_RAWPTR(ary) - RARRAY_RAWPTR(shared) + new_len <= RARRAY_LEN(shared)) { rb_ary_modify_check(ary); } Index: ChangeLog =================================================================== --- ChangeLog (revision 42685) +++ ChangeLog (revision 42686) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Aug 26 13:11:10 2013 Kazuhiro NISHIYAMA <zn@m...> + + * array.c (ary_ensure_room_for_push): fix typo in r42658. + Mon Aug 26 12:37:10 2013 Nobuyoshi Nakada <nobu@r...> * template/sizes.c.tmpl: generate automatically by extracting -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/