second argument of PyDict_Next() should be of type Py_ssize_t, which isn't restricted...
authorAndreas Oberritter <obi@opendreambox.org>
Tue, 25 Mar 2008 15:56:54 +0000 (15:56 +0000)
committerAndreas Oberritter <obi@opendreambox.org>
Tue, 25 Mar 2008 15:56:54 +0000 (15:56 +0000)
lib/base/ebase.cpp

index bf41dc0bf2c582a125e4df003bae82a579c62002..03f50ccc62ebc3906259fa53220b276f3a671d98 100644 (file)
@@ -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);