From: Martin Kronbichler Date: Thu, 29 Apr 2021 12:07:02 +0000 (+0200) Subject: DynamicSparsityPattern: Avoid bug with 64 bit integers X-Git-Tag: v9.3.0-rc1~151^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc27642e5975b2bde60f4e33c4e9dfa6cef948e8;p=dealii.git DynamicSparsityPattern: Avoid bug with 64 bit integers --- diff --git a/include/deal.II/lac/dynamic_sparsity_pattern.h b/include/deal.II/lac/dynamic_sparsity_pattern.h index 254dfd0e97..a0216cf273 100644 --- a/include/deal.II/lac/dynamic_sparsity_pattern.h +++ b/include/deal.II/lac/dynamic_sparsity_pattern.h @@ -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