From e9c7cf235bed78a87b60a0682831ae148e5861c7 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 3 May 2016 11:19:46 +0200 Subject: [PATCH] Fix compiler warning --- src/ifcgeom/IfcGeomShapes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomShapes.cpp b/src/ifcgeom/IfcGeomShapes.cpp index 1ee77a77f9..cef6e6f0a0 100644 --- a/src/ifcgeom/IfcGeomShapes.cpp +++ b/src/ifcgeom/IfcGeomShapes.cpp @@ -950,7 +950,7 @@ bool IfcGeom::Kernel::convert(const IfcSchema::IfcTriangulatedFaceSet* l, TopoDS const int min_index = *std::min_element(tri.begin(), tri.end()); const int max_index = *std::max_element(tri.begin(), tri.end()); - if (min_index < 1 || max_index > points.size()) { + if (min_index < 1 || max_index > (int) points.size()) { Logger::Message(Logger::LOG_ERROR, "Contents of CoordIndex out of bounds", l->entity); return false; }