diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 21:30:40 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 21:30:40 (GMT) |
commit | 98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90 (patch) | |
tree | 126cb038a65e06368c70f900ed90139c0e67a66b /Python/pythonrun.c | |
parent | eae94706a30c99150982034d644d8b3abf28110b (diff) | |
download | cpython-98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90.zip cpython-98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90.tar.gz cpython-98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90.tar.bz2 |
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r-- | Python/pythonrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b2d5464..63d9eeb 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1738,7 +1738,7 @@ print_error_text(PyObject *f, int offset, PyObject *text_obj) return; if (offset >= 0) { - if (offset > 0 && offset == strlen(text) && text[offset - 1] == '\n') + if (offset > 0 && (size_t)offset == strlen(text) && text[offset - 1] == '\n') offset--; for (;;) { nl = strchr(text, '\n'); |