diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 23:30:40 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-15 23:30:40 +0200 |
commit | e61cceeeacea42566240bc7635bc8cc2f4168cf1 (patch) | |
tree | 096e1c21850af429d60add40b5c7469a7741a641 /Python/pythonrun.c | |
parent | 795b7b7c36a70492c17cc0be6741b4503a5e1304 (diff) | |
download | cpython-e61cceeeacea42566240bc7635bc8cc2f4168cf1.tar.gz |
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 b2d5464191..63d9eeb689 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'); |