From: Martin Kronbichler Date: Wed, 7 Oct 2020 12:45:37 +0000 (+0200) Subject: Avoid warning 'unsigned expression < 0 always false' by using int X-Git-Tag: v9.3.0-rc1~1024^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11016%2Fhead;p=dealii.git Avoid warning 'unsigned expression < 0 always false' by using int --- diff --git a/include/deal.II/matrix_free/mapping_info.templates.h b/include/deal.II/matrix_free/mapping_info.templates.h index c7561253db..58255da351 100644 --- a/include/deal.II/matrix_free/mapping_info.templates.h +++ b/include/deal.II/matrix_free/mapping_info.templates.h @@ -71,7 +71,7 @@ namespace internal for (unsigned int i = 0; i < n_q_points; ++i) quadrature_weights[i] = quadrature.weight(i); - for (unsigned int d = 0; d < structdim; ++d) + for (int d = 0; d < structdim; ++d) { tensor_quadrature_weights[d].resize(quadrature_1d.size()); for (unsigned int i = 0; i < quadrature_1d.size(); ++i) @@ -120,7 +120,7 @@ namespace internal std::size_t memory = sizeof(this) + quadrature.memory_consumption() + quadrature_weights.memory_consumption() + face_orientations.memory_consumption(); - for (unsigned int d = 0; d < structdim; ++d) + for (int d = 0; d < structdim; ++d) memory += tensor_quadrature_weights[d].memory_consumption(); return memory; }