mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
Added the const qualifier to char* variables that refer to readonly internal
UTF-8 represenatation of Unicode objects.
This commit is contained in:
parent
a98c4a984b
commit
85b0f5beb1
29 changed files with 60 additions and 61 deletions
|
@ -249,7 +249,7 @@ PyMember_SetOne(char *addr, PyMemberDef *l, PyObject *v)
|
|||
Py_XDECREF(oldv);
|
||||
break;
|
||||
case T_CHAR: {
|
||||
char *string;
|
||||
const char *string;
|
||||
Py_ssize_t len;
|
||||
|
||||
string = PyUnicode_AsUTF8AndSize(v, &len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue