]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-98686: Fix compiler warning for HAS_ARG (GH-99106)
authorBrandt Bucher <brandtbucher@microsoft.com>
Fri, 4 Nov 2022 23:54:32 +0000 (16:54 -0700)
committerGitHub <noreply@github.com>
Fri, 4 Nov 2022 23:54:32 +0000 (16:54 -0700)
Python/ceval.c

index 54f2282268242ccfd2e3f109ce15b04dbfc2ce47..85011afadf7fb1758dca59241e3e894f060f5f2b 100644 (file)
@@ -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 (HAS_ARG((int)_PyOpcode_Deopt[opcode])) {
         printf("%d: %s %d\n", offset * 2, opname, oparg);
     }
     else {