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