explicitly cast away constness to silence compiler warning

This commit is contained in:
Benjamin Peterson 2016-09-05 18:26:19 -07:00
parent 5130a4d5d7
commit 1bb0c0bd30
1 changed files with 1 additions and 1 deletions

View File

@ -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