]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39573: Fix buildbot failure for tupleobject.c (GH-20391)
authorDong-hee Na <donghee.na92@gmail.com>
Mon, 25 May 2020 17:25:28 +0000 (02:25 +0900)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 17:25:28 +0000 (02:25 +0900)
Objects/tupleobject.c

index 14534632dfea79f67b8ef03fed163be62de5a1b0..e4c0c91cfe81912131ec9f48ab5fd4f06a22b768 100644 (file)
@@ -83,7 +83,7 @@ tuple_alloc(Py_ssize_t size)
         /* Inline PyObject_InitVar */
 #ifdef Py_TRACE_REFS
         Py_SIZE(op) = size;
-        Py_TYPE(op) = &PyTuple_Type;
+        Py_SET_TYPE(op, &PyTuple_Type);
 #endif
         _Py_NewReference((PyObject *)op);
     }