Revert the use of PY_FORMAT_SIZE_T in PyErr_Format.
This commit is contained in:
parent
0f415dc57f
commit
730199275a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue