← Back to DAGDA | Support | Source: https://github.com/python/cpython/commit/53d378c81286644138415cb56da52a7351e1a477
Skip to content

Commit 53d378c

Browse files
ZackerySpytzbenjaminp
authored andcommitted
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
1 parent fd1e0e9 commit 53d378c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Objects/typeobject.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,11 @@ assign_version_tag(PyTypeObject *type)
369369
static PyMemberDef type_members[] = {
370370
{"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY},
371371
{"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
372-
{"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
373-
{"__weakrefoffset__", T_LONG,
372+
{"__flags__", T_ULONG, offsetof(PyTypeObject, tp_flags), READONLY},
373+
{"__weakrefoffset__", T_PYSSIZET,
374374
offsetof(PyTypeObject, tp_weaklistoffset), READONLY},
375375
{"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
376-
{"__dictoffset__", T_LONG,
376+
{"__dictoffset__", T_PYSSIZET,
377377
offsetof(PyTypeObject, tp_dictoffset), READONLY},
378378
{"__mro__", T_OBJECT, offsetof(PyTypeObject, tp_mro), READONLY},
379379
{0}

0 commit comments

Comments
 (0)