diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-10 14:54:21 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-10 14:54:21 +0000 |
commit | 0ab44dbc3cf92c459c045d4b8272380e417f4552 (patch) | |
tree | c68c131cfc71f25011e7325ce8436297096f0f34 | |
parent | 46bb1a9f922b4a201f754e2050332529e4629379 (diff) | |
download | ruby-0ab44dbc3cf92c459c045d4b8272380e417f4552.tar.gz |
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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | array.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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> * ext/socket/raddrinfo.c (nogvl_getaddrinfo): Fix indent. @@ -456,7 +456,7 @@ rb_ary_new_from_values(long n, const VALUE *elts) 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 */ }); |