Commit 3f2748e7 authored by Neal Norwitz's avatar Neal Norwitz

Silence compiler warning

parent 38ff36c4
......@@ -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) {
......
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