Py2/Qt4: fix build failures and warnings

This commit is contained in:
wmayer
2020-11-30 19:05:37 +01:00
parent 113fc7f1c3
commit 0e5cbf5298
6 changed files with 24 additions and 20 deletions

View File

@@ -421,7 +421,7 @@ private:
Mesh::MeshObject* mesh = static_cast<Mesh::MeshPy*>(m)->getMeshObjectPtr();
std::vector<unsigned long> segm;
segm.reserve(list.size());
for (unsigned int i=0; i<list.size(); i++) {
for (Py_ssize_t i=0; i<list.size(); i++) {
segm.push_back((long)Py::Long(list[i]));
}