From 4521627faa47907cd71650ca19232eaf340c84d5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Mon, 30 Apr 2018 17:27:28 +0200 Subject: [PATCH] Only invert bits up to the maximum possible in ~CacheUpdateFlags --- include/deal.II/grid/grid_tools_cache_update_flags.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/grid/grid_tools_cache_update_flags.h b/include/deal.II/grid/grid_tools_cache_update_flags.h index dbac866d3c..7ecf04a242 100644 --- a/include/deal.II/grid/grid_tools_cache_update_flags.h +++ b/include/deal.II/grid/grid_tools_cache_update_flags.h @@ -121,8 +121,8 @@ namespace GridTools operator ~ (const CacheUpdateFlags f1) { return static_cast ( - ~static_cast (f1) - ); + static_cast (f1) ^ + static_cast (update_all)); } -- 2.39.5