summaryrefslogtreecommitdiff
path: root/Modules/readline.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2016-09-05 18:26:19 -0700
committerBenjamin Peterson <benjamin@python.org>2016-09-05 18:26:19 -0700
commit1bb0c0bd30f6f140f747f8c9814a08a0d626c044 (patch)
tree92901d301e8efeede375f31ebaff2f0e26f1d169 /Modules/readline.c
parent5130a4d5d74b19d704099cb40758527c1894185a (diff)
downloadcpython-git-1bb0c0bd30f6f140f747f8c9814a08a0d626c044.tar.gz
explicitly cast away constness to silence compiler warning
Diffstat (limited to 'Modules/readline.c')
-rw-r--r--Modules/readline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/readline.c b/Modules/readline.c
index 383b19abbc..54f15bc1c9 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