]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a static_cast back in 7470/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 24 Nov 2018 21:11:36 +0000 (22:11 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 24 Nov 2018 21:11:36 +0000 (22:11 +0100)
include/deal.II/hp/dof_level.h

index dfd90e6f9b55c012b017c07b5712d337b0ba5d71..3af1013c4b33a8c45a3bc615374b92aa82c0512b 100644 (file)
@@ -349,7 +349,8 @@ namespace internal
     {
       // convert the active_fe_index into a signed type, flip all
       // bits, and get the unsigned representation back
-      return ~(static_cast<signed_active_fe_index_type>(active_fe_index));
+      return static_cast<active_fe_index_type>(
+        ~(static_cast<signed_active_fe_index_type>(active_fe_index)));
     }
 
 

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.