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 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
46bb1a9f92
commit
0ab44dbc3c
@ -1,3 +1,9 @@
|
|||||||
|
Mon Jun 10 23:51:51 2013 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||||
|
|
||||||
|
* 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@cozmixng.org>
|
Mon Jun 10 21:51:03 2013 Kouhei Sutou <kou@cozmixng.org>
|
||||||
|
|
||||||
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): Fix indent.
|
* ext/socket/raddrinfo.c (nogvl_getaddrinfo): Fix indent.
|
||||||
|
2
array.c
2
array.c
@ -456,7 +456,7 @@ rb_ary_new_from_values(long n, const VALUE *elts)
|
|||||||
|
|
||||||
ary = rb_ary_new2(n);
|
ary = rb_ary_new2(n);
|
||||||
if (n > 0 && elts) {
|
if (n > 0 && elts) {
|
||||||
assert(!OBJ_PROMOTED(obj));
|
assert(!OBJ_PROMOTED(ary));
|
||||||
RARRAY_PTR_USE(ary, ptr, {
|
RARRAY_PTR_USE(ary, ptr, {
|
||||||
MEMCPY(ptr, elts, VALUE, n); /* new array is not old gen */
|
MEMCPY(ptr, elts, VALUE, n); /* new array is not old gen */
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user