From 31091aed60d76a8f44eaf82feed8c63c73f76d12 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Tue, 25 Mar 2008 15:56:54 +0000 Subject: [PATCH] second argument of PyDict_Next() should be of type Py_ssize_t, which isn't restricted to 32 bits --- lib/base/ebase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/ebase.cpp b/lib/base/ebase.cpp index bf41dc0b..03f50ccc 100644 --- a/lib/base/ebase.cpp +++ b/lib/base/ebase.cpp @@ -200,7 +200,7 @@ int eMainloop::processOneEvent(unsigned int twisted_timeout, PyObject **res, ePy if (additional) { PyObject *key, *val; - int pos=0; + Py_ssize_t pos=0; while (PyDict_Next(additional, &pos, &key, &val)) { pfd[i].fd = PyObject_AsFileDescriptor(key); pfd[i++].events = PyInt_AsLong(val); -- 2.30.2