]> granicus.if.org Git - python/commitdiff
Fix 64-bit problem, ParseTuple("i") needs C ints; ("l") needs C longs.
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 18 Feb 2003 03:37:49 +0000 (03:37 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 18 Feb 2003 03:37:49 +0000 (03:37 +0000)
Use "l" as that *probably* makes more sense (at least to me it does :-)
And the test passes on the alpha.

Modules/zipimport.c

index 4c796f3cd2d7fbd688d53ab560cd8adc69ace55e..355f69c1269e5a6cf20fec89c54ecbc37a0560e6 100644 (file)
@@ -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;