Skip to content

Commit 1bb0c0b

Browse files
committed
explicitly cast away constness to silence compiler warning
1 parent 5130a4d commit 1bb0c0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/readline.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ flex_complete(const char *text, int start, int end)
10631063
Py_XDECREF(readlinestate_global->endidx);
10641064
readlinestate_global->begidx = PyLong_FromLong((long) start);
10651065
readlinestate_global->endidx = PyLong_FromLong((long) end);
1066-
result = completion_matches(text, *on_completion);
1066+
result = completion_matches((char *)text, *on_completion);
10671067
#ifdef WITH_THREAD
10681068
PyGILState_Release(gilstate);
10691069
#endif

0 commit comments

Comments
 (0)