Skip to content

Commit eda691d

Browse files
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
(cherry picked from commit 53d378c) Co-authored-by: Zackery Spytz <[email protected]>
1 parent 951af2d commit eda691d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Objects/typeobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,11 @@ assign_version_tag(PyTypeObject *type)
210210
static PyMemberDef type_members[] = {
211211
{"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY},
212212
{"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
213-
{"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
214-
{"__weakrefoffset__", T_LONG,
213+
{"__flags__", T_ULONG, offsetof(PyTypeObject, tp_flags), READONLY},
214+
{"__weakrefoffset__", T_PYSSIZET,
215215
offsetof(PyTypeObject, tp_weaklistoffset), READONLY},
216216
{"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
217-
{"__dictoffset__", T_LONG,
217+
{"__dictoffset__", T_PYSSIZET,
218218
offsetof(PyTypeObject, tp_dictoffset), READONLY},
219219
{"__mro__", T_OBJECT, offsetof(PyTypeObject, tp_mro), READONLY},
220220
{0}

0 commit comments

Comments
 (0)