From 4a0d1e7c36f8ce2720fa6121b61bd048a87714ed Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 18 Sep 2015 13:44:11 +0200 Subject: odictobject.c: fix compiler warning PyObject_Length() returns a P_ssize_t, not an int. Use a Py_ssize_t to avoid overflow. --- Objects/odictobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/odictobject.c b/Objects/odictobject.c index 104d6c1..7df419e 100644 --- a/Objects/odictobject.c +++ b/Objects/odictobject.c @@ -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); -- cgit v0.12