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/traceback.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/traceback.c')
-rw-r--r-- | Python/traceback.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index 2ece192db9..565094b1e8 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; |