diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-14 16:39:15 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-14 16:39:15 +0000 |
commit | ef8ec126af4ab0fba0bff708e2aef1ed4867fc60 (patch) | |
tree | 489d3ac0bc9d172e33965204600726fd5d4dbbef /array.c | |
parent | 15169a6f8f4126946b8cced042acde82fd2dc8c8 (diff) | |
download | ruby-ef8ec126af4ab0fba0bff708e2aef1ed4867fc60.tar.gz ruby-ef8ec126af4ab0fba0bff708e2aef1ed4867fc60.tar.xz ruby-ef8ec126af4ab0fba0bff708e2aef1ed4867fc60.zip |
* range.c (range_each_func): terminates loop if generating value
is same to @end. [ruby-talk:100269]
* string.c (rb_str_new4): should not reuse frozen shared string if
the original is not an instance of String. [ruby-talk:100193]
* time.c (time_mdump): preserve GMT bit in the marshal data.
[ruby-talk:100213]
* eval.c (is_defined): do not protect exception during receiver
evaluation.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r-- | array.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -227,9 +227,9 @@ rb_values_new2(n, elts) val = ary_new(rb_cValues, n); if (n > 0 && elts) { + RARRAY(val)->len = n; MEMCPY(RARRAY(val)->ptr, elts, VALUE, n); } - RARRAY(val)->len = n; return val; } |