[g++-warning-fix] Fixed comparison between signed and unsigned integer expressions

This commit is contained in:
tpaviot
2020-11-02 16:03:50 +01:00
committed by Thomas Krijnen
parent 4ea56ba987
commit b8e0c21dcc
+1 -1
View File
@@ -2904,7 +2904,7 @@ namespace {
auto result_shape = split.Shape();
std::list<TopoDS_Shape> 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);