Merge pull request #51385 from RandomShaper/fix_thread_default_null

Fix logic to allow default null thread argument
This commit is contained in:
Rémi Verschelde 2021-08-08 13:58:13 +02:00 committed by GitHub
commit bd94aa3c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1787,7 +1787,7 @@ void _Thread::_start_func(void *ud) {
target_param_count = method->get_argument_count();
target_default_arg_count = method->get_default_argument_count();
}
if (target_param_count >= 1 && target_default_arg_count == target_param_count) {
if (target_param_count >= 1 && target_default_arg_count < target_param_count) {
argc = 1;
}
}