summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-06 01:26:19 (GMT)
committerBenjamin Peterson <benjamin@python.org>2016-09-06 01:26:19 (GMT)
commit1bb0c0bd30f6f140f747f8c9814a08a0d626c044 (patch)
tree92901d301e8efeede375f31ebaff2f0e26f1d169
parent5130a4d5d74b19d704099cb40758527c1894185a (diff)
downloadcpython-1bb0c0bd30f6f140f747f8c9814a08a0d626c044.zip
cpython-1bb0c0bd30f6f140f747f8c9814a08a0d626c044.tar.gz
cpython-1bb0c0bd30f6f140f747f8c9814a08a0d626c044.tar.bz2
explicitly cast away constness to silence compiler warning
-rw-r--r--Modules/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 383b19a..54f15bc 100644
--- a/Modules/readline.c
+++ b/Modules/readline.c
@@ -1063,7 +1063,7 @@ done:
Py_XDECREF(readlinestate_global->endidx);
readlinestate_global->begidx = PyLong_FromLong((long) start);
readlinestate_global->endidx = PyLong_FromLong((long) end);
- result = completion_matches(text, *on_completion);
+ result = completion_matches((char *)text, *on_completion);
#ifdef WITH_THREAD
PyGILState_Release(gilstate);
#endif