From 739a7634f524287099527cabeb851cc562b2cd8e Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Thu, 20 Oct 2022 11:09:40 -0700 Subject: [PATCH 1/2] Fix compiler warning --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index 54f2282268242c..25086f056b33f1 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -143,7 +143,7 @@ lltrace_instruction(_PyInterpreterFrame *frame, const char *opname = _PyOpcode_OpName[opcode]; assert(opname != NULL); int offset = (int)(next_instr - _PyCode_CODE(frame->f_code)); - if (HAS_ARG(_PyOpcode_Deopt[opcode])) { + if (HAVE_ARGUMENT <= _PyOpcode_Deopt[opcode]) { printf("%d: %s %d\n", offset * 2, opname, oparg); } else { From ce1d3d610b4bd95fc945f5ac6a5c72d72f46b73c Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Thu, 20 Oct 2022 12:49:48 -0700 Subject: [PATCH 2/2] Just cast instead --- Python/ceval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index 25086f056b33f1..85011afadf7fb1 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -143,7 +143,7 @@ lltrace_instruction(_PyInterpreterFrame *frame, const char *opname = _PyOpcode_OpName[opcode]; assert(opname != NULL); int offset = (int)(next_instr - _PyCode_CODE(frame->f_code)); - if (HAVE_ARGUMENT <= _PyOpcode_Deopt[opcode]) { + if (HAS_ARG((int)_PyOpcode_Deopt[opcode])) { printf("%d: %s %d\n", offset * 2, opname, oparg); } else {