diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-01-19 16:40:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-01-19 17:59:37 +0900 |
commit | eeacdcb9a073c7d8ad703e0dc9faf229a5ebbe3c (patch) | |
tree | 6f10d536d4b1a1b1924f9924fc885043fbc69dbc /vm_method.c | |
parent | e6af81bde166f8714a835d768363fa8de6426885 (diff) |
Fixed premature return
After setting ruby2_keywords for bmethod, the rest of arguments
had been ignored. [Bug #17558]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4096
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index aee5d6149c..c4eb3dd611 100644 --- a/vm_method.c +++ b/vm_method.c @@ -2208,7 +2208,7 @@ rb_mod_ruby2_keywords(int argc, VALUE *argv, VALUE module) else { rb_warn("Skipping set of ruby2_keywords flag for %s (method accepts keywords or method does not accept argument splat)", rb_id2name(name)); } - return Qnil; + break; } } /* fallthrough */ |