]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid confusing the compiler by explicitly casting the zero to its intended data...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Sep 2008 18:41:23 +0000 (18:41 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Sep 2008 18:41:23 +0000 (18:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@16822 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/vector.h

index 014610859d8aa463b390504446784ccb7c76393b..dcb6f37068b9f768a5bf846b36d98ac4c55739a3 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 by the deal.II authors
+//    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -935,7 +935,7 @@ void Vector<Number>::reinit (const unsigned int n, const bool fast)
     };
   vec_size = n;
   if (fast == false)
-    *this = 0;
+    *this = static_cast<Number>(0);
 }
 
 

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.