diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 20:28:56 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 20:28:56 (GMT) |
commit | 3f528f0c1b79f32b1c00348f53f4b5b2007f16c5 (patch) | |
tree | a76bfcf24fcaf2f2367eef113b8da4783f82c0fd /Modules/zipimport.c | |
parent | 8c9818980b639d4f50d0fb95ee383565e7dfa171 (diff) | |
download | cpython-3f528f0c1b79f32b1c00348f53f4b5b2007f16c5.zip cpython-3f528f0c1b79f32b1c00348f53f4b5b2007f16c5.tar.gz cpython-3f528f0c1b79f32b1c00348f53f4b5b2007f16c5.tar.bz2 |
Fix a compiler warning in zipimport
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r-- | Modules/zipimport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 3c07866..87dc0dbf 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -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; |