Silence compiler warning

This commit is contained in:
Neal Norwitz 2006-06-30 07:32:16 +00:00
parent 38ff36c4cc
commit 3f2748e775

View file

@ -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 @@ resize(PyObject *self, PyObject *args)
}
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) {