From: Martin Kronbichler Date: Wed, 26 Jun 2024 20:31:17 +0000 (+0200) Subject: Fix compile warning X-Git-Tag: v9.6.0-rc1~156^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56e833b3059da7d3a41784b6561803aa346ed5fc;p=dealii.git Fix compile warning --- diff --git a/include/deal.II/matrix_free/tensor_product_point_kernels.h b/include/deal.II/matrix_free/tensor_product_point_kernels.h index 9b7bb7a2a9..cff17b6216 100644 --- a/include/deal.II/matrix_free/tensor_product_point_kernels.h +++ b/include/deal.II/matrix_free/tensor_product_point_kernels.h @@ -1388,13 +1388,13 @@ namespace internal std::array shape_values_x; for (unsigned int i1 = 0; i1 < array_size; ++i1) shape_values_x[i1] = shapes[i1][0][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_value * shapes[i1][0][1] : test_value; Number2 *values_ptr = values + i + i1 * length; - for (unsigned int i0 = 0; i0 < length; ++i0) + for (int i0 = 0; i0 < length; ++i0) { if (add) values_ptr[i0] += shape_values_x[i0] * test_value_y;