Skip to content

Commit a4967d9

Browse files
authored
pythongh-103082: Fix shifted field initialization in instrumentation.c (pythonGH-103561)
Fix shifted field initialization in instrumentation.c
1 parent 3e0fec7 commit a4967d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Python/instrumentation.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
static PyObject DISABLE =
1818
{
19-
_PyObject_IMMORTAL_REFCNT,
20-
&PyBaseObject_Type
19+
.ob_refcnt = _PyObject_IMMORTAL_REFCNT,
20+
.ob_type = &PyBaseObject_Type
2121
};
2222

2323
PyObject _PyInstrumentation_MISSING =
2424
{
25-
_PyObject_IMMORTAL_REFCNT,
26-
&PyBaseObject_Type
25+
.ob_refcnt = _PyObject_IMMORTAL_REFCNT,
26+
.ob_type = &PyBaseObject_Type
2727
};
2828

2929
static const int8_t EVENT_FOR_OPCODE[256] = {

0 commit comments

Comments
 (0)