From 731e45216ae4adf4122f0515d3056e1579efb0f9 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 27 Dec 2011 12:17:36 +0000 Subject: * 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 --- node.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'node.h') diff --git a/node.h b/node.h index 5c08be4ab5..be91a312b8 100644 --- a/node.h +++ b/node.h @@ -488,11 +488,12 @@ VALUE rb_gvar_defined(struct rb_global_entry *); const struct kwtable *rb_reserved_word(const char *, unsigned int); struct rb_args_info { - long pre_args_num; /* count of mandatory pre-arguments */ NODE *pre_init; - - long post_args_num; /* count of mandatory post-arguments */ NODE *post_init; + + int pre_args_num; /* count of mandatory pre-arguments */ + int post_args_num; /* count of mandatory post-arguments */ + ID first_post_arg; ID rest_arg; -- cgit v1.2.3