[Python-checkins] r47170 - python/trunk/Modules/_ctypes/callproc.c
neal.norwitz
python-checkins at python.org
Fri Jun 30 09:32:17 CEST 2006
Author: neal.norwitz
Date: Fri Jun 30 09:32:16 2006
New Revision: 47170
Modified:
python/trunk/Modules/_ctypes/callproc.c
Log:
Silence compiler warning
Modified: python/trunk/Modules/_ctypes/callproc.c
==============================================================================
--- python/trunk/Modules/_ctypes/callproc.c (original)
+++ python/trunk/Modules/_ctypes/callproc.c Fri Jun 30 09:32:16 2006
@@ -82,6 +82,10 @@
#define DONT_USE_SEH
#endif
+#ifndef PY_FORMAT_SIZE_T
+#define PY_FORMAT_SIZE_T ""
+#endif
+
#ifdef MS_WIN32
PyObject *ComError;
@@ -1486,7 +1490,8 @@
}
if (size < dict->size) {
PyErr_Format(PyExc_ValueError,
- "minimum size is %d", dict->size);
+ "minimum size is %" PY_FORMAT_SIZE_T "d",
+ dict->size);
return NULL;
}
if (obj->b_needsfree == 0) {
More information about the Python-checkins
mailing list