mirror of
https://github.com/python/cpython
synced 2026-09-29 09:25:29 +03:00
#544265, Remove warnings for passing const to free()
This commit is contained in:
parent
2a7ff35a07
commit
0e0ee598fc
1 changed files with 1 additions and 1 deletions
|
|
@ -270,7 +270,7 @@ set_completer_delims(PyObject *self, PyObject *args)
|
|||
if(!PyArg_ParseTuple(args, "s:set_completer_delims", &break_chars)) {
|
||||
return NULL;
|
||||
}
|
||||
free(rl_completer_word_break_characters);
|
||||
free((void*)rl_completer_word_break_characters);
|
||||
rl_completer_word_break_characters = strdup(break_chars);
|
||||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue