]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compiler warning in ceval.c regarding signed comparison (GH-28716)
authorPablo Galindo Salgado <Pablogsal@gmail.com>
Mon, 4 Oct 2021 11:13:46 +0000 (12:13 +0100)
committerGitHub <noreply@github.com>
Mon, 4 Oct 2021 11:13:46 +0000 (12:13 +0100)
Python/ceval.c

index c951e563cd7a10c3022be4a309a3f82810e771bc..8f65bb3aec4bc1c6bcb236cb1690f1c34fc6f647 100644 (file)
@@ -7015,7 +7015,7 @@ maybe_dtrace_line(InterpreterFrame *frame,
     if (line != -1) {
         /* Trace backward edges or first instruction of a new line */
         if (frame->f_lasti < instr_prev ||
-            (line != lastline && frame->f_lasti*sizeof(_Py_CODEUNIT) == trace_info->bounds.ar_start))
+            (line != lastline && frame->f_lasti*sizeof(_Py_CODEUNIT) == (unsigned int)trace_info->bounds.ar_start))
         {
             co_filename = PyUnicode_AsUTF8(frame->f_code->co_filename);
             if (!co_filename) {