summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorOleg Iarygin <oleg@arhadthedev.net>2023-04-21 17:27:50 +0400
committerGitHub <noreply@github.com>2023-04-21 07:27:50 -0600
commita4967d9d5974562dc0b3d2fcb494483cce9b8122 (patch)
tree32c20d98d411a3b865ddf6723ed2d81a592e1c43 /Python
parent3e0fec7e07a71bdeeab7554e980110fbc47763b9 (diff)
downloadcpython-git-a4967d9d5974562dc0b3d2fcb494483cce9b8122.tar.gz
gh-103082: Fix shifted field initialization in `instrumentation.c` (GH-103561)
Fix shifted field initialization in instrumentation.c
Diffstat (limited to 'Python')
-rw-r--r--Python/instrumentation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/instrumentation.c b/Python/instrumentation.c
index 853e8a10e8..2a3b2b8ebe 100644
--- a/Python/instrumentation.c
+++ b/Python/instrumentation.c
@@ -16,14 +16,14 @@
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] = {