summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-10-04 11:13:46 (GMT)
committerGitHub <noreply@github.com>2021-10-04 11:13:46 (GMT)
commit07cf10bafc8f6e1fcc82c10d97d3452325fc7c04 (patch)
tree56921dbc070358611f243e4738f6e53a9a829f75
parent252b7bcb236dc261f3af1275bc90f9a303d9648f (diff)
downloadcpython-07cf10bafc8f6e1fcc82c10d97d3452325fc7c04.zip
cpython-07cf10bafc8f6e1fcc82c10d97d3452325fc7c04.tar.gz
cpython-07cf10bafc8f6e1fcc82c10d97d3452325fc7c04.tar.bz2
Fix compiler warning in ceval.c regarding signed comparison (GH-28716)
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index c951e56..8f65bb3 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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) {