Fix compiler warning in ceval.c regarding signed comparison (GH-28716)

This commit is contained in:
Pablo Galindo Salgado 2021-10-04 12:13:46 +01:00 committed by GitHub
parent 252b7bcb23
commit 07cf10bafc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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) {