From 0c0aad948aa3bc3954514d842d28d08a6cc6112f Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 18 Feb 2003 03:37:49 +0000 Subject: [PATCH] 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. --- Modules/zipimport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/zipimport.c b/Modules/zipimport.c index 4c796f3cd2..355f69c126 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; -- 2.40.0