From 0d70483e9ff1cc11d2be56ec9a6358194c9649db Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 6 Jul 2009 11:39:01 +0000 Subject: [PATCH] Fix compilation problem on Debin Sarge --- src/StdMeshers/StdMeshers_MEFISTO_2D.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx b/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx index f842eb87b..3a46e7b0e 100644 --- a/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx +++ b/src/StdMeshers/StdMeshers_MEFISTO_2D.cxx @@ -340,14 +340,14 @@ bool StdMeshers_MEFISTO_2D::Evaluate(SMESH_Mesh & aMesh, BRepGProp::SurfaceProperties(aShape,G); double anArea = G.Mass(); - int nbFaces = (int) anArea/(tmpLength*tmpLength*sqrt(3)/4); + int nbFaces = (int) ( anArea/(tmpLength*tmpLength*sqrt(3.)/4) ); int nbNodes = (int) ( nbFaces*3 - (NbSeg-1)*2 ) / 6; std::vector aVec(17); for(int i=0; i<17; i++) aVec[i] = 0; if(IsQuadratic) { aVec[4] = nbFaces; - aVec[0] = nbNodes + nbFaces*3 - (NbSeg-1); + aVec[0] = (int)( nbNodes + nbFaces*3 - (NbSeg-1) ); } else { aVec[0] = nbNodes; -- 2.39.2