[Python-checkins] r47175 - python/trunk/Modules/_ctypes/callproc.c
thomas.heller
python-checkins at python.org
Fri Jun 30 19:44:55 CEST 2006
Author: thomas.heller
Date: Fri Jun 30 19:44:54 2006
New Revision: 47175
Modified:
python/trunk/Modules/_ctypes/callproc.c
Log:
Revert the use of PY_FORMAT_SIZE_T in PyErr_Format.
Modified: python/trunk/Modules/_ctypes/callproc.c
==============================================================================
--- python/trunk/Modules/_ctypes/callproc.c (original)
+++ python/trunk/Modules/_ctypes/callproc.c Fri Jun 30 19:44:54 2006
@@ -1490,7 +1490,11 @@
}
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;
}
More information about the Python-checkins
mailing list