[Python-checkins] GH-98686: Fix compiler warning for HAS_ARG (GH-99106)

brandtbucher webhook-mailer at python.org
Fri Nov 4 19:54:38 EDT 2022


https://github.com/python/cpython/commit/6a8d3c57afd6729c410fa17cf0efc08d1b065e15
commit: 6a8d3c57afd6729c410fa17cf0efc08d1b065e15
branch: main
author: Brandt Bucher <brandtbucher at microsoft.com>
committer: brandtbucher <brandtbucher at gmail.com>
date: 2022-11-04T16:54:32-07:00
summary:

GH-98686: Fix compiler warning for HAS_ARG (GH-99106)

files:
M Python/ceval.c

diff --git a/Python/ceval.c b/Python/ceval.c
index 54f228226824..85011afadf7f 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 (HAS_ARG((int)_PyOpcode_Deopt[opcode])) {
         printf("%d: %s %d\n", offset * 2, opname, oparg);
     }
     else {



More information about the Python-checkins mailing list