]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Type explicitation
authorCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Tue, 26 Aug 2014 12:03:04 +0000 (14:03 +0200)
committerCamille GOUTTEBROZE <camille.gouttebroze@cea.fr>
Tue, 26 Aug 2014 12:03:04 +0000 (14:03 +0200)
src/EntityGUI/EntityGUI_FeatureDetectorDlg.cxx

index 9ac38a334261302c175db431c53848e9138fb270..a5a5e836aa601bc053b38dde50ceaae1fae97051 100644 (file)
@@ -859,11 +859,11 @@ bool EntityGUI_FeatureDetectorDlg::execute( ObjectList& objects )
                 double u_v_det = (it->x - it_previous->x) * (it_next->y - it->y) - 
                                  (it->y - it_previous->y) * (it_next->x - it->x);
                                           
-                double norme_u = sqrt ( (it->x - it_previous->x)*(it->x - it_previous->x) +
-                                        (it->y - it_previous->y)*(it->y - it_previous->y) );
+                double norme_u = sqrt ( double(it->x - it_previous->x) * double(it->x - it_previous->x) +
+                                        double(it->y - it_previous->y) * double(it->y - it_previous->y) );
                 
-                double norme_v = sqrt ( (it->x - it_next->x)*(it->x - it_next->x) +
-                                        (it->y - it_next->y)*(it->y - it_next->y) );
+                double norme_v = sqrt ( double(it->x - it_next->x) * double(it->x - it_next->x) +
+                                        double(it->y - it_next->y) * double(it->y - it_next->y) );
                                                                                                 
                 double u_v_sinus = u_v_det / (norme_u * norme_v);