diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-25 08:13:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-25 08:13:37 +0000 |
commit | 29123a3799fd706b819c7e33b8125e2a6d262431 (patch) | |
tree | 64a2af4da510fe14dce5f3720bc3bdc6a0065933 /class.c | |
parent | c7bc778ddea75a3608b911c5412030171590466a (diff) |
class.c: simplify
* class.c (rb_scan_args): merge code for n_trail.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -1901,22 +1901,16 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...) if (ISDIGIT(*p)) { n_opt = *p - '0'; p++; - if (ISDIGIT(*p)) { - n_trail = *p - '0'; - p++; - goto block_arg; - } } } if (*p == '*') { f_var = 1; p++; - if (ISDIGIT(*p)) { - n_trail = *p - '0'; - p++; - } } - block_arg: + if (ISDIGIT(*p)) { + n_trail = *p - '0'; + p++; + } if (*p == ':') { f_hash = 1; p++; |