summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-10 14:54:21 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-10 14:54:21 +0000
commit0ab44dbc3cf92c459c045d4b8272380e417f4552 (patch)
treec68c131cfc71f25011e7325ce8436297096f0f34 /array.c
parent46bb1a9f922b4a201f754e2050332529e4629379 (diff)
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
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 7f423ed..8ef0b86 100644
--- a/array.c
+++ b/array.c
@@ -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 */
});