Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53d378c

Browse filesBrowse 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
Copy full SHA for 53d378c

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎Objects/typeobject.c

Copy file name to clipboardExpand all lines: Objects/typeobject.c
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.