From: Daniel Arndt Date: Mon, 30 Apr 2018 15:27:28 +0000 (+0200) Subject: Only invert bits up to the maximum possible in ~CacheUpdateFlags X-Git-Tag: v9.0.0-rc1~55^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4521627faa47907cd71650ca19232eaf340c84d5;p=dealii.git Only invert bits up to the maximum possible in ~CacheUpdateFlags --- 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)); }