summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-15 23:30:40 +0200
committerVictor Stinner <victor.stinner@gmail.com>2014-08-15 23:30:40 +0200
commite61cceeeacea42566240bc7635bc8cc2f4168cf1 (patch)
tree096e1c21850af429d60add40b5c7469a7741a641 /Python/pythonrun.c
parent795b7b7c36a70492c17cc0be6741b4503a5e1304 (diff)
downloadcpython-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.c2
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');