Skip to content

Commit da0d7ae

Browse files
fix free-threaded
1 parent f79e7d1 commit da0d7ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Include/internal/pycore_frame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ typedef struct _PyInterpreterFrame {
7777
char owner;
7878
char visited;
7979
#ifdef Py_DEBUG
80-
char lltrace;
80+
unsigned char lltrace;
8181
#endif
8282
/* Locals and stack */
8383
_PyStackRef localsplus[1];

Python/ceval_macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ GETITEM(PyObject *v, Py_ssize_t i) {
154154
/* The integer overflow is checked by an assertion below. */
155155
#define INSTR_OFFSET() ((int)(next_instr - _PyFrame_GetBytecode(frame)))
156156
#define NEXTOPARG() do { \
157-
_Py_CODEUNIT word = {.cache = FT_ATOMIC_LOAD_UINT8_RELAXED(*(uint16_t*)next_instr)}; \
157+
_Py_CODEUNIT word = {.cache = FT_ATOMIC_LOAD_UINT16_RELAXED(*(uint16_t*)next_instr)}; \
158158
opcode = word.op.code; \
159159
oparg = word.op.arg; \
160160
} while (0)

0 commit comments

Comments
 (0)