Issue 18327: swapped arguments in compatible_for_assignment()? (original) (raw)
Coverity has found something fishy in our code base:
CID 983564 (#1 of 1): Arguments in wrong order (SWAPPED_ARGUMENTS)swapped_arguments: The positions of arguments newto and oldto are inconsistent with the positions of the corresponding parameters for "compatible_for_assignment(PyTypeObject *, PyTypeObject *, char *)".
Object/typeobject.c:3326 if (compatible_for_assignment(newto, oldto, "class")) { Objects/typeobject.c.3265
static int compatible_for_assignment(PyTypeObject* oldto, PyTypeObject* newto, char* attr)