mirror of
https://github.com/python/cpython.git
synced 2025-09-12 11:46:52 +00:00
* eliminate warning by reverting tmp_s type to 'const char*'
This commit is contained in:
parent
94f68ee8ba
commit
60cbb3fe49
1 changed files with 1 additions and 1 deletions
|
@ -3161,7 +3161,7 @@ string_replace(PyStringObject *self, PyObject *args)
|
||||||
{
|
{
|
||||||
Py_ssize_t count = -1;
|
Py_ssize_t count = -1;
|
||||||
PyObject *from, *to;
|
PyObject *from, *to;
|
||||||
char *tmp_s;
|
const char *tmp_s;
|
||||||
Py_ssize_t tmp_len;
|
Py_ssize_t tmp_len;
|
||||||
|
|
||||||
if (!PyArg_ParseTuple(args, "OO|n:replace", &from, &to, &count))
|
if (!PyArg_ParseTuple(args, "OO|n:replace", &from, &to, &count))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue