From: Wolfgang Bangerth Date: Fri, 15 Jul 2022 03:21:55 +0000 (-0600) Subject: Use only enough bits in an enum as necessary. X-Git-Tag: v9.5.0-rc1~1090^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71ad3d3d02110f3b1c273dc71f447509f51f61fb;p=dealii.git Use only enough bits in an enum as necessary. --- diff --git a/include/deal.II/base/geometry_info.h b/include/deal.II/base/geometry_info.h index ab7ac139e4..71c57223f9 100644 --- a/include/deal.II/base/geometry_info.h +++ b/include/deal.II/base/geometry_info.h @@ -520,7 +520,7 @@ struct RefinementPossibilities * local coordinate system within the global coordinate system of the * space it lives in. */ - enum Possibilities + enum Possibilities : std::uint8_t { /** * Do not perform refinement. @@ -590,7 +590,7 @@ struct RefinementPossibilities<1> * local coordinate system within the global coordinate system of the * space it lives in. */ - enum Possibilities + enum Possibilities : std::uint8_t { /** * Do not refine. @@ -656,7 +656,7 @@ struct RefinementPossibilities<2> * local coordinate system within the global coordinate system of the * space it lives in. */ - enum Possibilities + enum Possibilities : std::uint8_t { /** * Do not refine. @@ -731,7 +731,7 @@ struct RefinementPossibilities<3> * local coordinate system within the global coordinate system of the * space it lives in. */ - enum Possibilities + enum Possibilities : std::uint8_t { /** * Do not refine.