mirror of
https://github.com/python/cpython.git
synced 2025-12-09 18:48:05 +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
|
|
@ -182,7 +182,7 @@ structseq_repr(PyStructSequence *obj)
|
|||
|
||||
for (i=0; i < VISIBLE_SIZE(obj); i++) {
|
||||
PyObject *val, *repr;
|
||||
char *cname, *crepr;
|
||||
const char *cname, *crepr;
|
||||
|
||||
cname = typ->tp_members[i].name;
|
||||
if (cname == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue