From 2f54b64453a04089e84cf3c0f0c8bb7dca3060a7 Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 21 Feb 2013 11:50:49 +0100 Subject: [PATCH] Fix compile error with gcc --- src/Mod/Fem/Gui/ViewProviderFemMesh.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp index d71f8683ea..65e433570a 100755 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.cpp @@ -479,9 +479,9 @@ void ViewProviderFEMMeshBuilder::createMesh(const App::Property* prop, SoCoordin double gridFactor = 50.0; double size = ((3*edge) / edgeL)*gridFactor; - unsigned int NbrX = unsigned int(BndBox.LengthX()/size)+1 ; - unsigned int NbrY = unsigned int(BndBox.LengthY()/size)+1; - unsigned int NbrZ = unsigned int(BndBox.LengthZ()/size)+1; + unsigned int NbrX = (unsigned int)(BndBox.LengthX()/size)+1; + unsigned int NbrY = (unsigned int)(BndBox.LengthY()/size)+1; + unsigned int NbrZ = (unsigned int)(BndBox.LengthZ()/size)+1; Base::Console().Log(" Size:F:%f, X:%i ,Y:%i ,Z:%i\n",gridFactor,NbrX,NbrY,NbrZ); double Xmin = BndBox.MinX;