From 92a28ad073dbac16b64aa28319407a68df9bf65c Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 15 Jun 2006 16:41:28 +0000 Subject: * 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 --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 78661fb1f..03b046d6d 100644 --- a/eval.c +++ b/eval.c @@ -8530,7 +8530,7 @@ rb_proc_arity(VALUE proc) list = list->nd_next; } if (var->nd_args) { - if (nd_type(var->nd_args) == NODE_POSTARG) { + if (var->nd_args != (NODE *)-1 && nd_type(var->nd_args) == NODE_POSTARG) { return -n-1-var->nd_args->nd_head->nd_alen; } return -n-1; -- cgit