From: Eric Snow Date: Tue, 23 May 2017 19:26:17 +0000 (-0700) Subject: bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765) X-Git-Tag: v3.7.0a1~759 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0918ecf93a458d4e005650f816d64654e73fc2a;p=python bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765) --- diff --git a/Modules/main.c b/Modules/main.c index c8d3afd38d..5e593f0a59 100644 --- a/Modules/main.c +++ b/Modules/main.c @@ -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");