From: Jack Diederich Date: Thu, 25 May 2006 18:47:15 +0000 (+0000) Subject: * eliminate warning by reverting tmp_s type to 'const char*' X-Git-Tag: v2.5b1~523 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60cbb3fe491d27fda77a0e9603ce8aeca32a69c2;p=python * eliminate warning by reverting tmp_s type to 'const char*' --- 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))