mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
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.
This commit is contained in:
parent
679bc9fce5
commit
0c0aad948a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue