diff -r 37d3c819cafa -r 2837b549e616 src/vertexmap.cpp --- a/src/vertexmap.cpp Wed Jun 22 16:13:15 2022 +0300 +++ b/src/vertexmap.cpp Wed Jun 22 16:53:35 2022 +0300 @@ -116,7 +116,7 @@ this->map.clear(); this->vertices.clear(); this->vertexHashes.clear(); - for (int i = 0; i < this->model->size(); ++i) + for (std::size_t i = 0; i < this->model->size(); ++i) { const ModelElement& element = this->model->at(i); std::optional matrix = ifplanar( @@ -162,7 +162,7 @@ { const std::optional index = model->find(objectId); if (index.has_value()) { - edges(this->model->at(index.value()), [&](Edge&& edge) + edges(this->model->at(unsigned_cast(index.value())), [&](Edge&& edge) { if (hashVertex(edge.a) == pair.first or hashVertex(edge.b) == pair.first) {