Commit 3f528f0c authored by Victor Stinner's avatar Victor Stinner

Fix a compiler warning in zipimport

parent 8c981898
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment