summaryrefslogtreecommitdiffstats
path: root/Modules/zipimport.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:30:23 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 14:30:23 (GMT)
commitad0a4629beac0600c4c4c3167b0d68be57ca674e (patch)
treea4aef28fd7dbf93c7dabde51ce88fe1748e29427 /Modules/zipimport.c
parent97c65a8068056863215eb3a14024c1e4a8d19b9f (diff)
downloadcpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.zip
cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.gz
cpython-ad0a4629beac0600c4c4c3167b0d68be57ca674e.tar.bz2
Use Py_ssize_t for counts and sizes.
Diffstat (limited to 'Modules/zipimport.c')
-rw-r--r--Modules/zipimport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/zipimport.c b/Modules/zipimport.c
index be141d0..373255d 100644
--- a/Modules/zipimport.c
+++ b/Modules/zipimport.c
@@ -408,7 +408,7 @@ zipimporter_get_data(PyObject *obj, PyObject *args)
char *p, buf[MAXPATHLEN + 1];
#endif
PyObject *toc_entry;
- int len;
+ Py_ssize_t len;
if (!PyArg_ParseTuple(args, "s:zipimporter.get_data", &path))
return NULL;
@@ -910,7 +910,7 @@ unmarshal_code(char *pathname, PyObject *data, time_t mtime)
{
PyObject *code;
char *buf = PyString_AsString(data);
- int size = PyString_Size(data);
+ Py_ssize_t size = PyString_Size(data);
if (size <= 9) {
PyErr_SetString(ZipImportError,