diff --git a/Include/internal/pycore_frame.h b/Include/internal/pycore_frame.h index 3f3edd0ffff061..7af48c1108af1f 100644 --- a/Include/internal/pycore_frame.h +++ b/Include/internal/pycore_frame.h @@ -77,7 +77,7 @@ typedef struct _PyInterpreterFrame { char owner; char visited; #ifdef Py_DEBUG - char lltrace; + unsigned char lltrace; #endif /* Locals and stack */ _PyStackRef localsplus[1]; diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 01b3c16190de57..6fcacb720032c1 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -154,7 +154,7 @@ GETITEM(PyObject *v, Py_ssize_t i) { /* The integer overflow is checked by an assertion below. */ #define INSTR_OFFSET() ((int)(next_instr - _PyFrame_GetBytecode(frame))) #define NEXTOPARG() do { \ - _Py_CODEUNIT word = {.cache = FT_ATOMIC_LOAD_UINT8_RELAXED(*(uint16_t*)next_instr)}; \ + _Py_CODEUNIT word = {.cache = FT_ATOMIC_LOAD_UINT16_RELAXED(*(uint16_t*)next_instr)}; \ opcode = word.op.code; \ oparg = word.op.arg; \ } while (0)