From 5a6f1d5a1e487980531bc65f960ccc0f3b74fb75 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 21 Aug 2009 17:23:32 +0000 Subject: [PATCH] Add explicit cast. git-svn-id: https://svn.dealii.org/trunk@19331 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/grid/grid_generator.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/deal.II/deal.II/source/grid/grid_generator.cc b/deal.II/deal.II/source/grid/grid_generator.cc index 586f3dcd26..4c908edcb7 100644 --- a/deal.II/deal.II/source/grid/grid_generator.cc +++ b/deal.II/deal.II/source/grid/grid_generator.cc @@ -1870,7 +1870,10 @@ void GridGenerator::truncated_cone (Triangulation &triangulation, { Assert (dim <= 3, ExcNotImplemented()); // Determine number of cells and vertices - const unsigned int n_cells = std::floor (half_length / std::max (radius_0, radius_1) + 0.5); + const unsigned int n_cells = static_cast(std::floor (half_length / + std::max (radius_0, + radius_1) + + 0.5)); const unsigned int n_vertices = 4 * (n_cells + 1); std::vector > vertices_tmp(n_vertices); -- 2.39.5