From: Just van Rossum Date: Sun, 7 Sep 2003 13:36:48 +0000 (+0000) Subject: Patch #801349: 64-bit fix for AMD64 from Gwenole Beauchesne. X-Git-Tag: v2.4a1~1616 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ee8f10fa37335cbbb8830c200edefd91605c22ac;p=thirdparty%2FPython%2Fcpython.git Patch #801349: 64-bit fix for AMD64 from Gwenole Beauchesne. Classical problem with int vs. long mismatch in varargs. 2.3 backport candidate. --- diff --git a/Modules/zipimport.c b/Modules/zipimport.c index afcd4211742d..b22908889244 100644 --- a/Modules/zipimport.c +++ b/Modules/zipimport.c @@ -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;