From: Thomas Heller Date: Fri, 30 Jun 2006 17:44:54 +0000 (+0000) Subject: Revert the use of PY_FORMAT_SIZE_T in PyErr_Format. X-Git-Tag: v2.5b2~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=730199275ae6e732e2aad0ef8e76abae8de63737;p=python Revert the use of PY_FORMAT_SIZE_T in PyErr_Format. --- diff --git a/Modules/_ctypes/callproc.c b/Modules/_ctypes/callproc.c index ba0e0fcb51..e883ed8c21 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; }