]> granicus.if.org Git - python/commitdiff
* eliminate warning by reverting tmp_s type to 'const char*'
authorJack Diederich <jackdied@gmail.com>
Thu, 25 May 2006 18:47:15 +0000 (18:47 +0000)
committerJack Diederich <jackdied@gmail.com>
Thu, 25 May 2006 18:47:15 +0000 (18:47 +0000)
Objects/stringobject.c

index 33cbf07406675dfd29156609e44caaa6b834b101..402de12de732697b4e896b63370bdde5bae10080 100644 (file)
@@ -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))