summaryrefslogtreecommitdiffstats
path: root/Python/traceback.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-15 21:30:40 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-15 21:30:40 (GMT)
commit98ea54c35c37e4f9a7d7a923a7ccd792f4b7ff90 (patch)
tree126cb038a65e06368c70f900ed90139c0e67a66b /Python/traceback.c
parenteae94706a30c99150982034d644d8b3abf28110b (diff)
downloadcpython-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/traceback.c')
-rw-r--r--Python/traceback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c
index 2ece192..565094b 100644
--- a/Python/traceback.c
+++ b/Python/traceback.c
@@ -198,7 +198,7 @@ _Py_FindSourceFile(PyObject *filename, char* namebuf, size_t namelen, PyObject *
}
strcpy(namebuf, PyBytes_AS_STRING(path));
Py_DECREF(path);
- if (strlen(namebuf) != len)
+ if (strlen(namebuf) != (size_t)len)
continue; /* v contains '\0' */
if (len > 0 && namebuf[len-1] != SEP)
namebuf[len++] = SEP;