Kaydet (Commit) 60cbb3fe authored tarafından Jack Diederich's avatar Jack Diederich

* eliminate warning by reverting tmp_s type to 'const char*'

üst 94f68ee8
...@@ -3161,7 +3161,7 @@ string_replace(PyStringObject *self, PyObject *args) ...@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment