]> https://gitweb.dealii.org/ - dealii.git/commitdiff
DynamicSparsityPattern: Avoid bug with 64 bit integers
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Apr 2021 12:07:02 +0000 (14:07 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 29 Apr 2021 12:07:02 +0000 (14:07 +0200)
include/deal.II/lac/dynamic_sparsity_pattern.h

index 254dfd0e97a7e231a1a845f2666a9de2319148e5..a0216cf27375e70386c2815a52971a18bc19135c 100644 (file)
@@ -1177,7 +1177,7 @@ DynamicSparsityPattern::end(const size_type r) const
 {
   AssertIndexRange(r, n_rows());
 
-  unsigned int row = r + 1;
+  const size_type row = r + 1;
   if (row == n_rows())
     return {this};
   else

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.