mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #22156: Fix "comparison between signed and unsigned integers" compiler
warnings in the Python/ subdirectory.
This commit is contained in:
parent
eae94706a3
commit
98ea54c35c
5 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue