From: mpv Date: Thu, 4 Aug 2016 15:01:22 +0000 (+0300) Subject: Fix the problem of compilation on Windows in another way: use decimal index (long... X-Git-Tag: V_2.5.0~141 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=90e534c7a251b71b6e9ada7b84f05747d421a556;p=modules%2Fshaper.git Fix the problem of compilation on Windows in another way: use decimal index (long long), not real (long double) to output it to string without ".00" --- diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp index 061529b7d..fa9e808bf 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp @@ -209,7 +209,7 @@ void GeomAlgoAPI_MakeShape::initialize() { //================================================================================================= void GeomAlgoAPI_MakeShape::prepareNamingFaces() { - long double index = 1; + long long index = 1; GeomAPI_ShapeExplorer anExp(shape(), GeomAPI_Shape::FACE); for(GeomAPI_ShapeExplorer anExp(shape(), GeomAPI_Shape::FACE); anExp.more(); anExp.next()) { std::shared_ptr aFace = anExp.current();