From 35ea8e3490d3a7c4cca02353e93d6d935cdc1ebe Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 28 Jun 2012 11:25:25 +0000 Subject: [PATCH] Avoid a warning with gcc 4.7 (based on a patch by Uwe Koecher). git-svn-id: https://svn.dealii.org/trunk@25656 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/tria.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/deal.II/source/grid/tria.cc b/deal.II/source/grid/tria.cc index 24215318ae..156b910e90 100644 --- a/deal.II/source/grid/tria.cc +++ b/deal.II/source/grid/tria.cc @@ -3552,15 +3552,15 @@ namespace internal // all information of the // two quads const int switch_1_lines[4]= - {switch_1->line_index(0), - switch_1->line_index(1), - switch_1->line_index(2), - switch_1->line_index(3)}; + { static_cast(switch_1->line_index(0)), + static_cast(switch_1->line_index(1)), + static_cast(switch_1->line_index(2)), + static_cast(switch_1->line_index(3)) }; const bool switch_1_line_orientations[4]= - {switch_1->line_orientation(0), - switch_1->line_orientation(1), - switch_1->line_orientation(2), - switch_1->line_orientation(3)}; + { switch_1->line_orientation(0), + switch_1->line_orientation(1), + switch_1->line_orientation(2), + switch_1->line_orientation(3) }; const types::boundary_id_t switch_1_boundary_indicator=switch_1->boundary_indicator(); const unsigned int switch_1_user_index=switch_1->user_index(); const bool switch_1_user_flag=switch_1->user_flag_set(); -- 2.39.5