| 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/Python/structmember.c b/Python/structmember.c index be2737d..e653d02 100644 --- a/Python/structmember.c +++ b/Python/structmember.c
@@ -249,7 +249,7 @@ Py_XDECREF(oldv); break; case T_CHAR: { - char *string; + const char *string; Py_ssize_t len; string = PyUnicode_AsUTF8AndSize(v, &len);