diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-15 16:41:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-06-15 16:41:28 +0000 |
commit | 92a28ad073dbac16b64aa28319407a68df9bf65c (patch) | |
tree | 0e997e405b70ede14e32152e128deefc17db8881 /gc.c | |
parent | 69f15652928580a2b06f2a41ee287ee3db50475a (diff) | |
download | ruby-92a28ad073dbac16b64aa28319407a68df9bf65c.tar.gz ruby-92a28ad073dbac16b64aa28319407a68df9bf65c.tar.xz ruby-92a28ad073dbac16b64aa28319407a68df9bf65c.zip |
* eval.c (rb_proc_arity): get rid of segfault for mere splat.
* gc.c (gc_mark_children): NODE_BLOCK_PASS needs u3 to be marked.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r-- | gc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -794,6 +794,7 @@ gc_mark_children(VALUE ptr, int lev) case NODE_RESBODY: case NODE_CLASS: case NODE_ARGS: + case NODE_BLOCK_PASS: gc_mark((VALUE)obj->as.node.u2.node, lev); /* fall through */ case NODE_BLOCK: /* 1,3 */ @@ -833,7 +834,6 @@ gc_mark_children(VALUE ptr, int lev) case NODE_MODULE: case NODE_ALIAS: case NODE_VALIAS: - case NODE_BLOCK_PASS: gc_mark((VALUE)obj->as.node.u1.node, lev); /* fall through */ case NODE_METHOD: /* 2 */ |