]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do another cast to placate gcc3.3
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Dec 2008 04:35:46 +0000 (04:35 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 28 Dec 2008 04:35:46 +0000 (04:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@18035 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/grid/tria_accessor.templates.h

index e74cc05a7686ae3e1df4498ae5c14814c9c06967..690c2060622b17678a15bddafe4faa85e542c01a 100644 (file)
@@ -1350,8 +1350,8 @@ isotropic_child_index (const unsigned int i) const
            return child_index (i);
       case 2:
       {
-       const RefinementCase<2> this_refinement_case =
-         static_cast<RefinementCase<2> >(refinement_case());
+       const RefinementCase<2>
+         this_refinement_case (static_cast<unsigned char>(refinement_case()));
 
        Assert (this_refinement_case != RefinementCase<2>::no_refinement,
                TriaAccessorExceptions::ExcCellHasNoChildren());
@@ -1456,8 +1456,8 @@ isotropic_child (const unsigned int i) const
 
       case 2:
       {
-       const RefinementCase<2> this_refinement_case =
-         static_cast<RefinementCase<2> >(refinement_case());
+       const RefinementCase<2>
+         this_refinement_case (static_cast<unsigned char>(refinement_case()));
 
        Assert (this_refinement_case != RefinementCase<2>::no_refinement,
                TriaAccessorExceptions::ExcCellHasNoChildren());

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.