PyCXX: [skip ci] fix compiler warnings due to changes on PyCXX

This commit is contained in:
wmayer
2020-11-25 16:52:46 +01:00
parent 2ba2e23a98
commit 23059c13d3
7 changed files with 10 additions and 10 deletions

View File

@@ -893,7 +893,7 @@ PyObject *Application::sGetDependentObjects(PyObject * /*self*/, PyObject *args)
std::vector<App::DocumentObject*> objs;
if(PySequence_Check(obj)) {
Py::Sequence seq(obj);
for(size_t i=0;i<seq.size();++i) {
for(Py_ssize_t i=0;i<seq.size();++i) {
if(!PyObject_TypeCheck(seq[i].ptr(),&DocumentObjectPy::Type)) {
PyErr_SetString(PyExc_TypeError, "Expect element in sequence to be of type document object");
return 0;