summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorJack Diederich <jackdied@gmail.com>2006-05-25 18:47:15 (GMT)
committerJack Diederich <jackdied@gmail.com>2006-05-25 18:47:15 (GMT)
commit60cbb3fe491d27fda77a0e9603ce8aeca32a69c2 (patch)
tree7f47eaac080b69118df6f10de318b90f29ecfaad /Objects
parent94f68ee8ba0ed47a59da9527708b69b86104a0a2 (diff)
downloadcpython-60cbb3fe491d27fda77a0e9603ce8aeca32a69c2.zip
cpython-60cbb3fe491d27fda77a0e9603ce8aeca32a69c2.tar.gz
cpython-60cbb3fe491d27fda77a0e9603ce8aeca32a69c2.tar.bz2
* eliminate warning by reverting tmp_s type to 'const char*'
Diffstat (limited to 'Objects')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 33cbf07..402de12 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))