From: maier Date: Fri, 25 Apr 2014 10:03:16 +0000 (+0000) Subject: Testsuite: Fix a buffer overflow that makes clang unhappy in debug mode X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bce207f7307c44b8417295c0f976fc3aa0b63fd5;p=dealii-svn.git Testsuite: Fix a buffer overflow that makes clang unhappy in debug mode git-svn-id: https://svn.dealii.org/trunk@32826 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/vectorization_03.cc b/tests/base/vectorization_03.cc index 65e98e84d2..5b9ac5a144 100644 --- a/tests/base/vectorization_03.cc +++ b/tests/base/vectorization_03.cc @@ -27,7 +27,7 @@ void test() { VectorizedArray array[3]; - for (unsigned int i=0; i<4; ++i) + for (unsigned int i=0; i<3; ++i) for (unsigned int v=0; v::n_array_elements; ++v) array[i][v] = static_cast(rand())/RAND_MAX;