]> https://gitweb.dealii.org/ - dealii.git/commitdiff
static_cast in lapack_full_matrix.h
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 2 Feb 2018 12:33:34 +0000 (13:33 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 3 Feb 2018 00:42:52 +0000 (01:42 +0100)
include/deal.II/lac/lapack_full_matrix.h

index a2e810fc5706b26df359e6c7194c5189b3d2de6a..a629d5d9a31a685a7aea9bd98a0ab3e1b43099f1 100644 (file)
@@ -883,7 +883,7 @@ inline
 typename LAPACKFullMatrix<number>::size_type
 LAPACKFullMatrix<number>::m () const
 {
-  return this->n_rows ();
+  return static_cast<size_type>(this->n_rows ());
 }
 
 template <typename number>
@@ -891,7 +891,7 @@ inline
 typename LAPACKFullMatrix<number>::size_type
 LAPACKFullMatrix<number>::n () const
 {
-  return this->n_cols ();
+  return static_cast<size_type>(this->n_cols ());
 }
 
 template <typename number>

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.