summaryrefslogtreecommitdiff
path: root/node.h
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.h
parentc5e372ff277af2b69c785290389f638dbfef820d (diff)
* 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.h')
-rw-r--r--node.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/node.h b/node.h
index 5c08be4..be91a31 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;