Skip to content

Commit 5225175

Browse files
committed
Make signed-ness of opcode explicit
1 parent 82b1dbd commit 5225175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/frameobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ _PyFrame_GetState(PyFrameObject *frame)
429429
if (frame->f_frame->f_lasti < 0) {
430430
return FRAME_CREATED;
431431
}
432-
char *code = frame->f_frame->f_code->co_code_adaptive;
432+
uint8_t *code = (uint8_t *)frame->f_frame->f_code->co_code_adaptive;
433433
int opcode = code[frame->f_frame->f_lasti*sizeof(_Py_CODEUNIT)];
434434
switch(_PyOpcode_Deopt[opcode]) {
435435
case COPY_FREE_VARS:

0 commit comments

Comments
 (0)