mirror of
https://github.com/python/cpython.git
synced 2025-09-17 22:20:23 +00:00
Silence compiler warning
This commit is contained in:
parent
38ff36c4cc
commit
3f2748e775
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue