]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #16086: PyTypeObject.tp_flags and PyType_Spec.flags are now unsigned
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 30 Oct 2012 22:40:45 +0000 (23:40 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 30 Oct 2012 22:40:45 +0000 (23:40 +0100)
commit4ca1cf35fbf042700dfeaf7bf27d3d476eff32a6
treef542000264b28cdfcb3361652590b2f1848fc2ab
parente64322e034b62ee13dada8800c1667a8cf6332f6
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).
Include/object.h
Misc/NEWS
Objects/typeobject.c