]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
explicitly cast away constness to silence compiler warning
authorBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2016 01:26:19 +0000 (18:26 -0700)
committerBenjamin Peterson <benjamin@python.org>
Tue, 6 Sep 2016 01:26:19 +0000 (18:26 -0700)
Modules/readline.c

index 383b19abbcce408b08ea8e154bdcb2576abccc52..54f15bc1c934de688ae585c290e08db8cc2440f2 100644 (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