summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-09 05:47:04 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-09 05:47:04 +0000
commit54d461f9053098d7584425c9208288057f59e34f (patch)
treeabeb5d04d71bf6318c1e81f88f5ff9877c51ed2d /parse.y
parentb014282b40e69541c14e678ec79a01d8896103ab (diff)
downloadruby-54d461f9053098d7584425c9208288057f59e34f.tar.gz
ruby-54d461f9053098d7584425c9208288057f59e34f.tar.xz
ruby-54d461f9053098d7584425c9208288057f59e34f.zip
* include/ruby/ruby.h: embeds the elements of an array into its
struct RArray for # of elements <= 3. * array.c: ditto. * gc.c (gc_mark_children): following the change of struct RArray. * ext/tk/tcltklib.c (ip_ruby_cmp): ditto. * parse.y (coverage): ditto. * proc.c (curry): ditto. * .gdbinit: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 6b2914208..b40a430c6 100644
--- a/parse.y
+++ b/parse.y
@@ -4945,7 +4945,7 @@ coverage(const char *f, int n)
int i;
RBASIC(lines)->klass = 0;
for (i = 0; i < n; i++) RARRAY_PTR(lines)[i] = Qnil;
- RARRAY(lines)->len = n;
+ RARRAY(lines)->as.heap.len = n;
rb_hash_aset(coverages, fname, lines);
return lines;
}