summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2017-05-23 19:26:17 (GMT)
committerGitHub <noreply@github.com>2017-05-23 19:26:17 (GMT)
commite0918ecf93a458d4e005650f816d64654e73fc2a (patch)
tree03d30c6723f15a3d017b4e3f204fa56cf8fb66ed /Modules
parent84c6607a8188064db010010bcb67f8e54311f1b0 (diff)
downloadcpython-e0918ecf93a458d4e005650f816d64654e73fc2a.zip
cpython-e0918ecf93a458d4e005650f816d64654e73fc2a.tar.gz
cpython-e0918ecf93a458d4e005650f816d64654e73fc2a.tar.bz2
bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/main.c b/Modules/main.c
index c8d3afd..5e593f0 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");