summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-27 12:17:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-27 12:17:36 +0000
commit731e45216ae4adf4122f0515d3056e1579efb0f9 (patch)
treee42b3e3ac61e2c104f7a1b4d72380e55ab918f6e /node.c
parentc5e372ff277af2b69c785290389f638dbfef820d (diff)
downloadruby-731e45216ae4adf4122f0515d3056e1579efb0f9.tar.gz
* node.h (rb_args_info): change pre_args_num and post_args_num as
int, to match with rb_iseq_t. * parse.y (new_args_gen): check overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'node.c')
-rw-r--r--node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/node.c b/node.c
index cfeb562952..d4c2d9b02c 100644
--- a/node.c
+++ b/node.c
@@ -850,9 +850,9 @@ dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
ANN("method parameters");
ANN("format: def method_name(.., [nd_opt=some], *[nd_rest], [nd_pid], .., &[nd_body])");
ANN("example: def foo(a, b, opt1=1, opt2=2, *rest, y, z, &blk); end");
- F_LONG(nd_ainfo->pre_args_num, "count of mandatory (pre-)arguments");
+ F_INT(nd_ainfo->pre_args_num, "count of mandatory (pre-)arguments");
F_NODE(nd_ainfo->pre_init, "initialization of (pre-)arguments");
- F_LONG(nd_ainfo->post_args_num, "count of mandatory post-arguments");
+ F_INT(nd_ainfo->post_args_num, "count of mandatory post-arguments");
F_NODE(nd_ainfo->post_init, "initialization of post-arguments");
F_ID(nd_ainfo->first_post_arg, "first post argument");
F_ID(nd_ainfo->rest_arg, "rest argument");