ruby-changes:29169
From: kazu <ko1@a...>
Date: Mon, 10 Jun 2013 23:54:34 +0900 (JST)
Subject: [ruby-changes:29169] kazu:r41221 (trunk): fix a typo
kazu 2013-06-10 23:54:21 +0900 (Mon, 10 Jun 2013) New Revision: 41221 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41221 Log: fix a typo * array.c (rb_ary_new_from_values): fix a typo. pointed out by nagachika. http://d.hatena.ne.jp/nagachika/20130610/ruby_trunk_changes_41199_41220 Modified files: trunk/ChangeLog trunk/array.c Index: array.c =================================================================== --- array.c (revision 41220) +++ array.c (revision 41221) @@ -456,7 +456,7 @@ rb_ary_new_from_values(long n, const VAL https://github.com/ruby/ruby/blob/trunk/array.c#L456 ary = rb_ary_new2(n); if (n > 0 && elts) { - assert(!OBJ_PROMOTED(obj)); + assert(!OBJ_PROMOTED(ary)); RARRAY_PTR_USE(ary, ptr, { MEMCPY(ptr, elts, VALUE, n); /* new array is not old gen */ }); Index: ChangeLog =================================================================== --- ChangeLog (revision 41220) +++ ChangeLog (revision 41221) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Jun 10 23:51:51 2013 Kazuhiro NISHIYAMA <zn@m...> + + * array.c (rb_ary_new_from_values): fix a typo. pointed out by + nagachika. + http://d.hatena.ne.jp/nagachika/20130610/ruby_trunk_changes_41199_41220 + Mon Jun 10 21:51:03 2013 Kouhei Sutou <kou@c...> * ext/socket/raddrinfo.c (nogvl_getaddrinfo): Fix indent. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/