mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #28761: The fields name and doc of structures PyMemberDef, PyGetSetDef,
PyStructSequence_Field, PyStructSequence_Desc, and wrapperbase are now of type "const char *" rather of "char *".
This commit is contained in:
parent
9af740b99a
commit
007d7ff73f
8 changed files with 31 additions and 21 deletions
|
@ -256,7 +256,7 @@ structseq_reduce(PyStructSequence* self)
|
|||
}
|
||||
|
||||
for (; i < n_fields; i++) {
|
||||
char *n = Py_TYPE(self)->tp_members[i-n_unnamed_fields].name;
|
||||
const char *n = Py_TYPE(self)->tp_members[i-n_unnamed_fields].name;
|
||||
if (PyDict_SetItemString(dict, n, self->ob_item[i]) < 0)
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue