From: Neal Norwitz Date: Tue, 18 Feb 2003 03:37:49 +0000 (+0000) Subject: Fix 64-bit problem, ParseTuple("i") needs C ints; ("l") needs C longs. X-Git-Tag: v2.3c1~1808 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c0aad948aa3bc3954514d842d28d08a6cc6112f;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 4c796f3cd2d7..355f69c1269e 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;