]> granicus.if.org Git - python/commitdiff
Patch #801349: 64-bit fix for AMD64 from Gwenole Beauchesne.
authorJust van Rossum <just@letterror.com>
Sun, 7 Sep 2003 13:36:48 +0000 (13:36 +0000)
committerJust van Rossum <just@letterror.com>
Sun, 7 Sep 2003 13:36:48 +0000 (13:36 +0000)
Classical problem with int vs. long mismatch in varargs.
2.3 backport candidate.

Modules/zipimport.c

index afcd4211742dd0dbe3130856a9deaf28a738dc55..b229088892440bbf947e186ff04ea466974f8662 100644 (file)
@@ -875,7 +875,7 @@ get_data(char *archive, PyObject *toc_entry)
                                "zlib not available");
                goto error;
        }
-       data = PyObject_CallFunction(decompress, "Ol", raw_data, -15);
+       data = PyObject_CallFunction(decompress, "Oi", raw_data, -15);
 error:
        Py_DECREF(raw_data);
        return data;