]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix assertion.
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Aug 2011 08:17:52 +0000 (08:17 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Aug 2011 08:17:52 +0000 (08:17 +0000)
git-svn-id: https://svn.dealii.org/trunk@24002 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/tensor.h

index effb6875a19454431b78772d8d5985dbb82c77b3..93795b10caa02a26389be07084564fd91e696e7d 100644 (file)
@@ -519,7 +519,9 @@ inline
 void
 Tensor<rank_, dim, Number>::unroll (Vector<Number2> &result) const
 {
-  AssertDimension (result.size(),std::pow(static_cast<double>(dim),rank_));
+  AssertDimension (result.size(),
+                  static_cast<unsigned int>(std::pow(static_cast<double>(dim),
+                                                     rank_)));
   unsigned index = 0;
   unroll_recursion (result, index);
 }

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.