From b8e0c21dcc5f71ec6297f52a9002e7afbef8d680 Mon Sep 17 00:00:00 2001 From: tpaviot Date: Mon, 2 Nov 2020 16:03:50 +0100 Subject: [PATCH] [g++-warning-fix] Fixed comparison between signed and unsigned integer expressions --- src/ifcgeom/IfcGeomFunctions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcgeom/IfcGeomFunctions.cpp b/src/ifcgeom/IfcGeomFunctions.cpp index ecc8798ba3..8a74958c4c 100644 --- a/src/ifcgeom/IfcGeomFunctions.cpp +++ b/src/ifcgeom/IfcGeomFunctions.cpp @@ -2904,7 +2904,7 @@ namespace { auto result_shape = split.Shape(); std::list subs; subshapes(result_shape, subs); - if (subs.size() == 1 && operands.Size() - 2 > subs.size() && (subs.front().ShapeType() == TopAbs_COMPSOLID || subs.front().ShapeType() == TopAbs_COMPOUND)) { + if (subs.size() == 1 && operands.Size() - 2 > (int)subs.size() && (subs.front().ShapeType() == TopAbs_COMPSOLID || subs.front().ShapeType() == TopAbs_COMPOUND)) { auto s = subs.front(); subs.clear(); subshapes(s, subs);