diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-25 21:36:19 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-25 21:36:19 +0000 |
commit | 64f0682d7da858cf49c5559513a838248f8efee5 (patch) | |
tree | 2b7f166ad0ee8d54247fc34879a8e451ac4e376a /proc.c | |
parent | 43c3f447a4d442e0b135220013c89f3742645b37 (diff) | |
download | ruby-64f0682d7da858cf49c5559513a838248f8efee5.tar.gz |
* proc.c: Having any mandatory keyword argument increases min arity [#9299]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -881,7 +881,7 @@ rb_iseq_min_max_arity(const rb_iseq_t *iseq, int *max) iseq->argc + iseq->arg_post_len + iseq->arg_opts - (iseq->arg_opts > 0) + (iseq->arg_keyword != -1) : UNLIMITED_ARGUMENTS; - return iseq->argc + iseq->arg_post_len; + return iseq->argc + iseq->arg_post_len + (iseq->arg_keyword_required > 0); } static int |