summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 33cbf07406..402de12de7 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -3161,7 +3161,7 @@ string_replace(PyStringObject *self, PyObject *args)
{
Py_ssize_t count = -1;
PyObject *from, *to;
- char *tmp_s;
+ const char *tmp_s;
Py_ssize_t tmp_len;
if (!PyArg_ParseTuple(args, "OO|n:replace", &from, &to, &count))