mirror of https://github.com/python/cpython
odictobject.c: fix compiler warning
PyObject_Length() returns a P_ssize_t, not an int. Use a Py_ssize_t to avoid overflow.
This commit is contained in:
parent
9a8b177e60
commit
4a0d1e7c36
|
@ -998,7 +998,7 @@ odict_reduce(register PyODictObject *od)
|
|||
goto Done;
|
||||
else {
|
||||
PyObject *empty, *od_vars, *iterator, *key;
|
||||
int ns_len;
|
||||
Py_ssize_t ns_len;
|
||||
|
||||
/* od.__dict__ isn't necessarily a dict... */
|
||||
ns = PyObject_CallMethod((PyObject *)vars, "copy", NULL);
|
||||
|
|
Loading…
Reference in New Issue