diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-14 02:53:54 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-14 02:53:54 +0000 |
commit | c171ca1efdbc5553f9ba94e9ce4e7d868f3cb298 (patch) | |
tree | d9e42ae67952db1604e91347f1415a92bca2de94 | |
parent | 68394b27ba9b22f200ba5db90c0f3cb35fa41ebb (diff) | |
download | ruby-c171ca1efdbc5553f9ba94e9ce4e7d868f3cb298.tar.gz |
ext/coverage/coverage.c: Fix the condition for non-experimental mode
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/coverage/coverage.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c index 91cfca8ff3..a286cf9222 100644 --- a/ext/coverage/coverage.c +++ b/ext/coverage/coverage.c @@ -30,7 +30,7 @@ rb_coverage_start(int argc, VALUE *argv, VALUE klass) if (!e || !*e) experimental_mode_enabled = 0; } - if (!experimental_mode_enabled) + if (!experimental_mode_enabled && argc != 0) rb_error_arity(argc, 0, 0); rb_scan_args(argc, argv, "01", &opt); |