You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Wrong types for PyMemberDefs in Objects/typeobject.c #81132
New changeset 53d378c by Benjamin Peterson (Zackery Spytz) in branch 'master':
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403) 53d378c
New changeset eda691d by Miss Islington (bot) in branch '2.7':
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403) eda691d
New changeset 64b0bdb by Miss Islington (bot) in branch '3.7':
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403) 64b0bdb
Activity
KevinShweh commentedon May 17, 2019
In Objects/typeobject.c, the PyMemberDefs for __flags__, __weakrefoffset__, and __dictoffset__ all use T_LONG:
but in Include/object.h or Include/cpython/object.h, the corresponding struct members have types unsigned long, Py_ssize_t, and Py_ssize_t respectively:
These uses of T_LONG should be changed to T_ULONG and T_PYSSIZE_T.
This was checked on 3.7.3 and master.
KevinShweh commentedon May 17, 2019
Looks like I accidentally doubled the PyMemberDef for __weakrefoffset__ while editing. There's no double definition in the actual file.
ZackerySpytz commentedon May 18, 2019
I agree that this should be fixed.
benjaminp commentedon May 20, 2019
New changeset 53d378c by Benjamin Peterson (Zackery Spytz) in branch 'master':
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
53d378c
miss-islington commentedon May 20, 2019
New changeset eda691d by Miss Islington (bot) in branch '2.7':
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
eda691d
miss-islington commentedon May 20, 2019
New changeset 64b0bdb by Miss Islington (bot) in branch '3.7':
closes bpo-36951: Correct some types in the type_members struct in typeobject.c. (GH-13403)
64b0bdb