[Python-checkins] closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
Miss Islington (bot)
webhook-mailer at python.org
Sun May 19 20:49:56 EDT 2019
https://github.com/python/cpython/commit/eda691dd9d076e175c396dc6f85dee2795572f6c
commit: eda691dd9d076e175c396dc6f85dee2795572f6c
branch: 2.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-05-19T17:49:50-07:00
summary:
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
(cherry picked from commit 53d378c81286644138415cb56da52a7351e1a477)
Co-authored-by: Zackery Spytz <zspytz at gmail.com>
files:
M Objects/typeobject.c
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 844fb0074920..56277cfc35ec 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -210,11 +210,11 @@ assign_version_tag(PyTypeObject *type)
static PyMemberDef type_members[] = {
{"__basicsize__", T_PYSSIZET, offsetof(PyTypeObject,tp_basicsize),READONLY},
{"__itemsize__", T_PYSSIZET, offsetof(PyTypeObject, tp_itemsize), READONLY},
- {"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY},
- {"__weakrefoffset__", T_LONG,
+ {"__flags__", T_ULONG, offsetof(PyTypeObject, tp_flags), READONLY},
+ {"__weakrefoffset__", T_PYSSIZET,
offsetof(PyTypeObject, tp_weaklistoffset), READONLY},
{"__base__", T_OBJECT, offsetof(PyTypeObject, tp_base), READONLY},
- {"__dictoffset__", T_LONG,
+ {"__dictoffset__", T_PYSSIZET,
offsetof(PyTypeObject, tp_dictoffset), READONLY},
{"__mro__", T_OBJECT, offsetof(PyTypeObject, tp_mro), READONLY},
{0}
More information about the Python-checkins
mailing list