Commit 0c0aad94 authored by Neal Norwitz's avatar Neal Norwitz

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.
parent 679bc9fc
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment