src/vertexmap.cpp

changeset 250
2837b549e616
parent 200
ca23936b455b
child 259
c27612f0eac0
--- 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<glm::mat4> matrix = ifplanar<glm::mat4>(
@@ -162,7 +162,7 @@
 		{
 			const std::optional<int> 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)
 					{

mercurial