From 3393b3e683a3f25d8647d49237407f5bac306a4a Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 24 Mar 2020 11:37:24 +0300 Subject: [PATCH] bos #18900 [CEA] SHAPER compilation issue PartSet_Validators.cpp --- src/PartSet/PartSet_Validators.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_Validators.cpp b/src/PartSet/PartSet_Validators.cpp index 979ef341c..2f4d1a82b 100644 --- a/src/PartSet/PartSet_Validators.cpp +++ b/src/PartSet/PartSet_Validators.cpp @@ -75,7 +75,7 @@ int shapesNbPoints(const ModuleBase_ISelection* theSelection) return aCount; } -typedef std::unordered_map ShapeQuantity; +typedef std::unordered_map ShapeQuantity; int shapesNbEdges(const ModuleBase_ISelection* theSelection, ShapeQuantity& theEdges) { @@ -90,7 +90,7 @@ int shapesNbEdges(const ModuleBase_ISelection* theSelection, ShapeQuantity& theE Standard_Real aStart, aEnd; Handle(Geom_Curve) aCurve = BRep_Tool::Curve(aEdge, aStart, aEnd); GeomAdaptor_Curve aAdaptor(aCurve); - theEdges[aAdaptor.GetType()] += 1; + theEdges[(int)aAdaptor.GetType()] += 1; aCount++; } } -- 2.39.2