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

@@ -296,7 +296,7 @@ bool FeaturePythonImp::getSubObjects(std::vector<std::string> &ret, int reason)
if(!res.isSequence())
throw Py::TypeError("getSubObjects expects return type of tuple");
Py::Sequence seq(res);
for(size_t i=0;i<seq.length();++i) {
for(Py_ssize_t i=0;i<seq.length();++i) {
Py::Object name(seq[i].ptr());
if(!name.isString())
throw Py::TypeError("getSubObjects expects string in returned sequence");