From: Martin Kronbichler Date: Wed, 20 Jan 2016 16:55:19 +0000 (+0100) Subject: Fix compiler warning X-Git-Tag: v8.4.0-rc2~72^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=244be61b91ac81e38d6303857e6124d03d433a1c;p=dealii.git Fix compiler warning --- diff --git a/source/multigrid/mg_transfer_matrix_free.cc b/source/multigrid/mg_transfer_matrix_free.cc index 8bb7c5992f..da97e205cd 100644 --- a/source/multigrid/mg_transfer_matrix_free.cc +++ b/source/multigrid/mg_transfer_matrix_free.cc @@ -719,19 +719,21 @@ namespace VectorizedArray *data) { Assert(degree > 0, ExcNotImplemented()); - const unsigned int loop_length = 2*degree+1; + const int loop_length = 2*degree+1; unsigned int degree_to_3 [loop_length]; degree_to_3[0] = 0; - for (unsigned int i=1; i2 ? loop_length : 1); ++k) - for (unsigned int j=0; j<(dim>1 ? loop_length : 1); ++j) + for (int k=0; k<(dim>2 ? loop_length : 1); ++k) + for (int j=0; j<(dim>1 ? loop_length : 1); ++j) { const unsigned int shift = 9*degree_to_3[k] + 3*degree_to_3[j]; data[0] *= weights[shift]; - for (unsigned int i=1; i