]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning about implicit conversion to bool. 13256/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Jan 2022 03:06:14 +0000 (20:06 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Jan 2022 03:06:14 +0000 (20:06 -0700)
include/deal.II/matrix_free/fe_point_evaluation.h

index d4c444462faa04655a546b0560ff168ca1947c58..e499d344d81c8479a3bec9362abe928af7d9699a 100644 (file)
@@ -879,18 +879,18 @@ FEPointEvaluation<n_components, dim, spacedim, Number>::reinit(
   if (!poly.empty())
     {
       // Check the mapping data for consistency.
-      if (update_flags_mapping & update_jacobians)
+      if ((update_flags_mapping & update_jacobians) != 0u)
         Assert(precomputed_mapping_data.jacobians.size() == unit_points.size(),
                ExcDimensionMismatch(precomputed_mapping_data.jacobians.size(),
                                     unit_points.size()));
-      if (update_flags_mapping & update_inverse_jacobians)
+      if ((update_flags_mapping & update_inverse_jacobians) != 0u)
         Assert(precomputed_mapping_data.inverse_jacobians.size() ==
                  unit_points.size(),
                ExcDimensionMismatch(
                  precomputed_mapping_data.inverse_jacobians.size(),
                  unit_points.size()));
 
-      if (update_flags_mapping & update_quadrature_points)
+      if ((update_flags_mapping & update_quadrature_points) != 0u)
         Assert(precomputed_mapping_data.inverse_jacobians.size() ==
                  unit_points.size(),
                ExcDimensionMismatch(

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.