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 | e0648d6cf540d92983fd8ec232e4e666290c8e7a (patch) | |
tree | 0e997e405b70ede14e32152e128deefc17db8881 /eval.c | |
parent | c703f58807c35f9166886f993d91dfdda6643d65 (diff) | |
download | ruby-e0648d6cf540d92983fd8ec232e4e666290c8e7a.tar.gz |
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@10278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |