[Python-checkins] Fix compiler warning in ceval.c regarding signed comparison (GH-28716)

pablogsal webhook-mailer at python.org
Mon Oct 4 07:13:51 EDT 2021


https://github.com/python/cpython/commit/07cf10bafc8f6e1fcc82c10d97d3452325fc7c04
commit: 07cf10bafc8f6e1fcc82c10d97d3452325fc7c04
branch: main
author: Pablo Galindo Salgado <Pablogsal at gmail.com>
committer: pablogsal <Pablogsal at gmail.com>
date: 2021年10月04日T12:13:46+01:00
summary:
Fix compiler warning in ceval.c regarding signed comparison (GH-28716)
files:
M Python/ceval.c
diff --git a/Python/ceval.c b/Python/ceval.c
index c951e563cd7a1..8f65bb3aec4bc 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) {


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /