]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Get const-correctness right.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Sep 2001 16:12:30 +0000 (16:12 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 3 Sep 2001 16:12:30 +0000 (16:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@4939 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/full_matrix.templates.h

index c9d8869047358fb382014f51303fce99c64ababf..0a0494c8f10cd80afc8ca376257e12bb2405412d 100644 (file)
@@ -72,8 +72,8 @@ template <typename number>
 FullMatrix<number> &
 FullMatrix<number>::operator *= (const double factor)
 {
-  number       *p = data();
-  const number *e = data() + n()*m();
+  number       *p = &el(0,0);
+  const number *e = &el(0,0) + n()*m();
   while (p != e)
     *p++ *= factor;
 

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.