From: vsr Date: Mon, 6 Jul 2009 11:39:01 +0000 (+0000) Subject: Fix compilation problem on Debin Sarge X-Git-Tag: V5_1_3rc1~151 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d70483e9ff1cc11d2be56ec9a6358194c9649db;p=modules%2Fsmesh.git Fix compilation problem on Debin Sarge --- 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;