]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103082: Fix shifted field initialization in `instrumentation.c` (GH-103561)
authorOleg Iarygin <oleg@arhadthedev.net>
Fri, 21 Apr 2023 13:27:50 +0000 (17:27 +0400)
committerGitHub <noreply@github.com>
Fri, 21 Apr 2023 13:27:50 +0000 (07:27 -0600)
Fix shifted field initialization in instrumentation.c

Python/instrumentation.c

index 853e8a10e81463d10829e622a5cdc9948424f166..2a3b2b8ebeead79c3e82c5b607055044230f234e 100644 (file)
 
 static PyObject DISABLE =
 {
-    _PyObject_IMMORTAL_REFCNT,
-    &PyBaseObject_Type
+    .ob_refcnt = _PyObject_IMMORTAL_REFCNT,
+    .ob_type = &PyBaseObject_Type
 };
 
 PyObject _PyInstrumentation_MISSING =
 {
-    _PyObject_IMMORTAL_REFCNT,
-    &PyBaseObject_Type
+    .ob_refcnt = _PyObject_IMMORTAL_REFCNT,
+    .ob_type = &PyBaseObject_Type
 };
 
 static const int8_t EVENT_FOR_OPCODE[256] = {