bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765)

This commit is contained in:
Eric Snow 2017-05-23 12:26:17 -07:00 committed by GitHub
parent 84c6607a81
commit e0918ecf93

View file

@ -379,7 +379,7 @@ read_command_line(int argc, wchar_t **argv, _Py_CommandLineDetails *cmdline)
PyObject *warning_option = NULL;
wchar_t *command = NULL;
wchar_t *module = NULL;
char c;
int c;
char *opt;
opt = Py_GETENV("PYTHONMALLOC");