From 0bdb49c683e0877b65fc2adba9d83e75d28d628f Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@colostate.edu>
Date: Tue, 13 Feb 2018 14:58:43 -0700
Subject: [PATCH] Use std::uint8_t instead of 'unsigned char' for refinement
 flags.

---
 include/deal.II/grid/tria_levels.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/deal.II/grid/tria_levels.h b/include/deal.II/grid/tria_levels.h
index ea3d9ec3fd..b1a3c2feac 100644
--- a/include/deal.II/grid/tria_levels.h
+++ b/include/deal.II/grid/tria_levels.h
@@ -25,6 +25,8 @@
 
 #include <boost/serialization/utility.hpp>
 
+#include <cstdint>
+
 DEAL_II_NAMESPACE_OPEN
 
 namespace internal
@@ -62,7 +64,7 @@ namespace internal
        * equals the length of the @p lines vector, in two dimensions that of
        * the @p quads vector, etc.
        */
-      std::vector<unsigned char> refine_flags;
+      std::vector<std::uint8_t> refine_flags;
 
       /**
        * Same meaning as the one above, but specifies whether a cell must be
@@ -216,7 +218,7 @@ namespace internal
     class TriaLevel<3>
     {
     public:
-      std::vector<unsigned char> refine_flags;
+      std::vector<std::uint8_t> refine_flags;
       std::vector<bool> coarsen_flags;
       std::vector<unsigned int> active_cell_indices;
       std::vector<std::pair<int,int> > neighbors;
-- 
2.39.5