From: Wolfgang Bangerth Date: Tue, 3 Jul 2001 11:54:36 +0000 (+0000) Subject: Disambiguate call to sqrt(int) X-Git-Tag: v8.0.0~18994 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=703f61dbc6c8da7211739450cad4ad89195bc2dc;p=dealii.git Disambiguate call to sqrt(int) git-svn-id: https://svn.dealii.org/trunk@4804 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/grid/tria_boundary.cc b/deal.II/deal.II/source/grid/tria_boundary.cc index e5524a3f7c..421a7c561d 100644 --- a/deal.II/deal.II/source/grid/tria_boundary.cc +++ b/deal.II/deal.II/source/grid/tria_boundary.cc @@ -178,7 +178,7 @@ get_intermediate_points_on_quad (const typename Triangulation::quad_iterato typename std::vector > &points) const { const unsigned int n=points.size(), - m=static_cast(std::sqrt(n)); + m=static_cast(std::sqrt(static_cast(n))); // is n a square number Assert(m*m==n, ExcInternalError()); diff --git a/deal.II/deal.II/source/grid/tria_boundary_lib.cc b/deal.II/deal.II/source/grid/tria_boundary_lib.cc index 5f516e38ed..cadbfc8bad 100644 --- a/deal.II/deal.II/source/grid/tria_boundary_lib.cc +++ b/deal.II/deal.II/source/grid/tria_boundary_lib.cc @@ -208,7 +208,7 @@ HyperBallBoundary<3>::get_intermediate_points_on_quad ( const Triangulation<3>::quad_iterator &quad, std::vector > &points) const { - unsigned int m=static_cast (std::sqrt(points.size())); + unsigned int m=static_cast (std::sqrt(static_cast(points.size()))); Assert(points.size()==m*m, ExcInternalError()); std::vector > lp3(m);