Revert the use of PY_FORMAT_SIZE_T in PyErr_Format.

This commit is contained in:
Thomas Heller 2006-06-30 17:44:54 +00:00
parent 0f415dc57f
commit 730199275a
1 changed files with 5 additions and 1 deletions

View File

@ -1490,7 +1490,11 @@ resize(PyObject *self, PyObject *args)
} }
if (size < dict->size) { if (size < dict->size) {
PyErr_Format(PyExc_ValueError, 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); dict->size);
return NULL; return NULL;
} }