Patch #801349: 64-bit fix for AMD64 from Gwenole Beauchesne.

Classical problem with int vs. long mismatch in varargs.
2.3 backport candidate.
This commit is contained in:
Just van Rossum 2003-09-07 13:36:48 +00:00
parent f1827cfaab
commit ee8f10fa37

View 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;