Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
corona10 committed Sep 24, 2023
1 parent 89d8bb2 commit 66c617f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Python/initconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -1707,10 +1707,9 @@ config_init_cpu_count(PyConfig *config)
const wchar_t *sep = wcschr(xoption, L'=');
if (sep) {
if (wcscmp(sep + 1, L"default") == 0) {
config->cpu_count = -1;
return _PyStatus_OK();
cpu_count = -1;
}
if (config_wstr_to_int(sep + 1, &cpu_count) < 0 || cpu_count < 1) {
else if (config_wstr_to_int(sep + 1, &cpu_count) < 0 || cpu_count < 1) {
goto error;
}
}
Expand Down

0 comments on commit 66c617f

Please sign in to comment.