]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Testsuite: Fix a buffer overflow that makes clang unhappy in debug mode
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Apr 2014 10:03:16 +0000 (10:03 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 25 Apr 2014 10:03:16 +0000 (10:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@32826 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/vectorization_03.cc

index 65e98e84d2fa42629cc7b3938db583404655be9d..5b9ac5a1446f1554acaab402c8a847466eb3cee1 100644 (file)
@@ -27,7 +27,7 @@
 void test()
 {
   VectorizedArray<double> array[3];
-  for (unsigned int i=0; i<4; ++i)
+  for (unsigned int i=0; i<3; ++i)
     for (unsigned int v=0; v<VectorizedArray<double>::n_array_elements; ++v)
       array[i][v] = static_cast<double>(rand())/RAND_MAX;
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.