summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-10-30 22:40:45 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-10-30 22:40:45 (GMT)
commit4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6 (patch)
treef542000264b28cdfcb3361652590b2f1848fc2ab /Objects
parente64322e034b62ee13dada8800c1667a8cf6332f6 (diff)
downloadcpython-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.c2
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;