mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Fix a compiler warning in zipimport
This commit is contained in:
parent
8c9818980b
commit
3f528f0c1b
1 changed files with 1 additions and 1 deletions
|
@ -868,7 +868,7 @@ read_directory(PyObject *archive)
|
|||
PY_MAJOR_VERSION, PY_MINOR_VERSION);
|
||||
goto error;
|
||||
}
|
||||
for (i = 0; (i < MAXPATHLEN - length - 1) &&
|
||||
for (i = 0; (i < (MAXPATHLEN - (Py_ssize_t)length - 1)) &&
|
||||
(i < PyUnicode_GET_LENGTH(nameobj)); i++)
|
||||
path[length + 1 + i] = PyUnicode_READ_CHAR(nameobj, i);
|
||||
path[length + 1 + i] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue