second argument of PyDict_Next() should be of type Py_ssize_t, which isn't restricted...
[enigma2.git] / 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;
        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);
                while (PyDict_Next(additional, &pos, &key, &val)) {
                        pfd[i].fd = PyObject_AsFileDescriptor(key);
                        pfd[i++].events = PyInt_AsLong(val);