From 730199275ae6e732e2aad0ef8e76abae8de63737 Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Fri, 30 Jun 2006 17:44:54 +0000 Subject: Revert the use of PY_FORMAT_SIZE_T in PyErr_Format. --- Modules/_ctypes/callproc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index ba0e0fc..e883ed8 100644 --- a/Modules/_ctypes/callproc.c +++ b/Modules/_ctypes/callproc.c @@ -1490,7 +1490,11 @@ resize(PyObject *self, PyObject *args) } if (size < dict->size) { PyErr_Format(PyExc_ValueError, - "minimum size is %" PY_FORMAT_SIZE_T "d", +#if PY_VERSION_HEX < 0x02050000 + "minimum size is %d", +#else + "minimum size is %zd", +#endif dict->size); return NULL; } -- cgit v0.12