diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-22 05:58:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-22 05:58:08 (GMT) |
commit | 007d7ff73f4e6e65cfafd512f9c23f7b7119b803 (patch) | |
tree | 31bd8b875b309b4259ca9eceff5a6746b0d4b19a /Objects | |
parent | 9af740b99a19a85ad5f38379b6175cf4ead685ba (diff) | |
download | cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.zip cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.tar.gz cpython-007d7ff73f4e6e65cfafd512f9c23f7b7119b803.tar.bz2 |
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 *".
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/structseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c index 6f1782f..c2ece5a 100644 --- a/Objects/structseq.c +++ b/Objects/structseq.c @@ -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; } |