diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2012-10-30 22:40:45 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2012-10-30 22:40:45 (GMT) |
commit | 4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6 (patch) | |
tree | f542000264b28cdfcb3361652590b2f1848fc2ab /Objects | |
parent | e64322e034b62ee13dada8800c1667a8cf6332f6 (diff) | |
download | cpython-4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6.zip cpython-4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6.tar.gz cpython-4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6.tar.bz2 |
Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsigned
... (unsigned long and unsigned int) to avoid an undefined behaviour with
Py_TPFLAGS_TYPE_SUBCLASS ((1 << 31). PyType_GetFlags() result type is now
unsigned too (unsigned long, instead of long).
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 5d625a2..a790add 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -1931,7 +1931,7 @@ type_init(PyObject *cls, PyObject *args, PyObject *kwds) return res; } -long +unsigned long PyType_GetFlags(PyTypeObject *type) { return type->tp_flags; |