From: Martin Kronbichler Date: Tue, 16 May 2023 12:02:04 +0000 (+0200) Subject: Avoid compiler warning X-Git-Tag: v9.5.0-rc1~224^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15228%2Fhead;p=dealii.git Avoid compiler warning --- diff --git a/include/deal.II/matrix_free/tensor_product_kernels.h b/include/deal.II/matrix_free/tensor_product_kernels.h index 00ad786ff2..8f12389759 100644 --- a/include/deal.II/matrix_free/tensor_product_kernels.h +++ b/include/deal.II/matrix_free/tensor_product_kernels.h @@ -3509,7 +3509,7 @@ namespace internal shape_values_x[j] = shapes[j][0][0]; shape_derivs_x[j] = shapes[j][1][0]; } - for (unsigned int i1 = 0; i1 < (dim > 1 ? length : 1); ++i1) + for (int i1 = 0; i1 < (dim > 1 ? length : 1); ++i1) { const Number2 test_value_y = dim > 1 ? (test_grads_value[2] * shapes[i1][0][1] + @@ -3520,7 +3520,7 @@ namespace internal test_grads_value[0]; Number2 *values_ptr = values.data() + i + i1 * length; - for (unsigned int i0 = 0; i0 < length; ++i0) + for (int i0 = 0; i0 < length; ++i0) { values_ptr[i0] += shape_values_x[i0] * test_value_y; values_ptr[i0] += shape_derivs_x[i0] * test_grad_xy;