Kaydet (Commit) 73019927 authored tarafından Thomas Heller's avatar Thomas Heller

Revert the use of PY_FORMAT_SIZE_T in PyErr_Format.

üst 0f415dc5
...@@ -1490,7 +1490,11 @@ resize(PyObject *self, PyObject *args) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment