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
This commit is contained in:
mame 2017-09-14 02:53:54 +00:00
parent 68394b27ba
commit c171ca1efd

View File

@ -30,7 +30,7 @@ rb_coverage_start(int argc, VALUE *argv, VALUE klass)
if (!e || !*e) experimental_mode_enabled = 0; if (!e || !*e) experimental_mode_enabled = 0;
} }
if (!experimental_mode_enabled) if (!experimental_mode_enabled && argc != 0)
rb_error_arity(argc, 0, 0); rb_error_arity(argc, 0, 0);
rb_scan_args(argc, argv, "01", &opt); rb_scan_args(argc, argv, "01", &opt);