From: Wolfgang Bangerth Date: Tue, 18 Jan 2022 03:06:14 +0000 (-0700) Subject: Avoid warning about implicit conversion to bool. X-Git-Tag: v9.4.0-rc1~602^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e8fb8fb2e2c682f417e96003beb0e3d4c2deef6;p=dealii.git Avoid warning about implicit conversion to bool. --- diff --git a/include/deal.II/matrix_free/fe_point_evaluation.h b/include/deal.II/matrix_free/fe_point_evaluation.h index d4c444462f..e499d344d8 100644 --- a/include/deal.II/matrix_free/fe_point_evaluation.h +++ b/include/deal.II/matrix_free/fe_point_evaluation.h @@ -879,18 +879,18 @@ FEPointEvaluation::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(