From: Benjamin Peterson Date: Tue, 6 Sep 2016 01:26:19 +0000 (-0700) Subject: explicitly cast away constness to silence compiler warning X-Git-Tag: v3.6.0b1~435^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bb0c0bd30f6f140f747f8c9814a08a0d626c044;p=thirdparty%2FPython%2Fcpython.git explicitly cast away constness to silence compiler warning --- diff --git a/Modules/readline.c b/Modules/readline.c index 383b19abbcce..54f15bc1c934 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