fix: large integer implicitly truncated to unsigned type,
[enigma2.git] / lib / base / ebase.cpp
index bf41dc0bf2c582a125e4df003bae82a579c62002..01ee6a5386fc3a4a74d77d00e92ba6a37af6b1ae 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);
@@ -443,7 +443,7 @@ static PyObject *
 eTimerPy_is_active(eTimerPy* self)
 {
        PyObject *ret = NULL;
-       ret = !!self->tm->isActive() ? Py_True : Py_False;
+       ret = self->tm->isActive() ? Py_True : Py_False;
        Org_Py_INCREF(ret);
        return ret;
 }