From 286fdc96d135d255ea100441996bb3480874aea1 Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Sat, 15 Apr 2023 16:19:32 +0400 Subject: [PATCH] Fix shifted field initialization in instrumentation.c --- Python/instrumentation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Python/instrumentation.c b/Python/instrumentation.c index 853e8a10e81463..2a3b2b8ebeead7 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] = {