commit | 85b0f5beb182cca8b1607accce2caab87ee29835 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 10:16:47 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sun Nov 20 10:16:47 2016 +0200 |
tree | 0e55ae3180c2836152ceb4f9689fc7ed1ccb71c5 | |
parent | a98c4a984b34f887076f4171b1e3303e164cbddf [diff] [blame] |
Added the const qualifier to char* variables that refer to readonly internal UTF-8 represenatation of Unicode objects.
diff --git a/Objects/setobject.c b/Objects/setobject.c index fdb9d36..b7e0617 100644 --- a/Objects/setobject.c +++ b/Objects/setobject.c
@@ -2398,7 +2398,7 @@ test_c_api(PySetObject *so) { Py_ssize_t count; - char *s; + const char *s; Py_ssize_t i; PyObject *elem=NULL, *dup=NULL, *t, *f, *dup2, *x=NULL; PyObject *ob = (PyObject *)so;