diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-18 03:37:49 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-02-18 03:37:49 (GMT) |
commit | 0c0aad948aa3bc3954514d842d28d08a6cc6112f (patch) | |
tree | 897e91bf881cc81b4ef415a414846e75f0d768d7 /Modules | |
parent | 679bc9fce57b6d29fbdf079a6f6e7a61603c89f7 (diff) | |
download | cpython-0c0aad948aa3bc3954514d842d28d08a6cc6112f.zip cpython-0c0aad948aa3bc3954514d842d28d08a6cc6112f.tar.gz cpython-0c0aad948aa3bc3954514d842d28d08a6cc6112f.tar.bz2 |
Fix 64-bit problem, ParseTuple("i") needs C ints; ("l") needs C longs.
Use "l" as that *probably* makes more sense (at least to me it does :-)
And the test passes on the alpha.
Diffstat (limited to 'Modules')
-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 4c796f3..355f69c 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -796,7 +796,7 @@ get_data(char *archive, PyObject *toc_entry) long compress, data_size, file_size, file_offset; long time, date, crc; - if (!PyArg_ParseTuple(toc_entry, "siiiiiii", &datapath, &compress, + if (!PyArg_ParseTuple(toc_entry, "slllllll", &datapath, &compress, &data_size, &file_size, &file_offset, &time, &date, &crc)) { return NULL; |