diff --git a/src/Mod/Fem/App/FemMesh.cpp b/src/Mod/Fem/App/FemMesh.cpp index 6ba9b2ca383c..6323c0fd6617 100644 --- a/src/Mod/Fem/App/FemMesh.cpp +++ b/src/Mod/Fem/App/FemMesh.cpp @@ -890,7 +890,7 @@ std::set FemMesh::getNodesBySolid(const TopoDS_Solid &solid) const } #pragma omp parallel for schedule(dynamic) - for (size_t i = 0; i < nodes.size(); ++i) { + for (int i = 0; i < static_cast(nodes.size()); ++i) { const SMDS_MeshNode* aNode = nodes[i]; double xyz[3]; aNode->GetXYZ(xyz); @@ -942,7 +942,7 @@ std::set FemMesh::getNodesByFace(const TopoDS_Face &face) const } #pragma omp parallel for schedule(dynamic) - for (size_t i = 0; i < nodes.size(); ++i) { + for (int i = 0; i < static_cast(nodes.size()); ++i) { const SMDS_MeshNode* aNode = nodes[i]; double xyz[3]; aNode->GetXYZ(xyz); @@ -992,7 +992,7 @@ std::set FemMesh::getNodesByEdge(const TopoDS_Edge &edge) const } #pragma omp parallel for schedule(dynamic) - for (size_t i = 0; i < nodes.size(); ++i) { + for (int i = 0; i < static_cast(nodes.size()); ++i) { const SMDS_MeshNode* aNode = nodes[i]; double xyz[3]; aNode->GetXYZ(xyz); @@ -1041,7 +1041,7 @@ std::set FemMesh::getNodesByVertex(const TopoDS_Vertex &vertex) const } #pragma omp parallel for schedule(dynamic) - for (size_t i = 0; i < nodes.size(); ++i) { + for (int i = 0; i < static_cast(nodes.size()); ++i) { const SMDS_MeshNode* aNode = nodes[i]; double xyz[3]; aNode->GetXYZ(xyz);