From: vsr Date: Tue, 24 Mar 2020 08:37:24 +0000 (+0300) Subject: bos #18900 [CEA] SHAPER compilation issue PartSet_Validators.cpp X-Git-Tag: V9_5_0a2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3393b3e683a3f25d8647d49237407f5bac306a4a;hp=fef81a8022e85517d8d350b56472b12809ac7b88;p=modules%2Fshaper.git bos #18900 [CEA] SHAPER compilation issue PartSet_Validators.cpp --- 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++; } }