From cffc0f41782ca8c182af1e066d5146bdb18e6406 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Fri, 2 Dec 2016 00:02:24 -0800 Subject: [PATCH] declarations to the top of the block --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 69a996a8fd8c..738ff864c81e 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -6314,12 +6314,12 @@ update_one_slot(PyTypeObject *type, slotdef *p) specific = (void *)slot_tp_new; } else { + PyTypeObject *staticbase = type->tp_base; specific = ((PyTypeObject *)self)->tp_new; /* Check that the user does not do anything silly and unsafe like object.__new__(dict). To do this, we check that the most derived base that's not a heap type is this type. */ - PyTypeObject *staticbase = type->tp_base; while (staticbase && (staticbase->tp_flags & Py_TPFLAGS_HEAPTYPE)) staticbase = staticbase->tp_base; -- 2.47.3