From 90e534c7a251b71b6e9ada7b84f05747d421a556 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 4 Aug 2016 18:01:22 +0300 Subject: [PATCH] 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" --- src/GeomAlgoAPI/GeomAlgoAPI_MakeShape.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2