]> granicus.if.org Git - python/commitdiff
bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765)
authorEric Snow <ericsnowcurrently@gmail.com>
Tue, 23 May 2017 19:26:17 +0000 (12:26 -0700)
committerGitHub <noreply@github.com>
Tue, 23 May 2017 19:26:17 +0000 (12:26 -0700)
Modules/main.c

index c8d3afd38d3c2aebc786d1dea957a518a4b07082..5e593f0a595079c3683415d3549282aab05ead17 100644 (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");