From: Wolfgang Bangerth Date: Tue, 1 Mar 2022 23:38:40 +0000 (-0700) Subject: Avoid integer comparison warning. X-Git-Tag: v9.4.0-rc1~423^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13476%2Fhead;p=dealii.git Avoid integer comparison warning. --- diff --git a/source/lac/trilinos_sparsity_pattern.cc b/source/lac/trilinos_sparsity_pattern.cc index 0216231cfb..19710f75ad 100644 --- a/source/lac/trilinos_sparsity_pattern.cc +++ b/source/lac/trilinos_sparsity_pattern.cc @@ -260,7 +260,7 @@ namespace TrilinosWrappers AssertThrow((TrilinosWrappers::max_my_gid(row_map) - TrilinosWrappers::min_my_gid(row_map)) * std::uint64_t(n_entries_per_row) < - std::numeric_limits::max(), + static_cast(std::numeric_limits::max()), ExcMessage("The TrilinosWrappers use Epetra internally which " "uses 'signed int' to represent local indices. " "Therefore, only 2,147,483,647 nonzero matrix " @@ -328,7 +328,7 @@ namespace TrilinosWrappers AssertThrow(std::accumulate(local_entries_per_row.begin(), local_entries_per_row.end(), std::uint64_t(0)) < - std::numeric_limits::max(), + static_cast(std::numeric_limits::max()), ExcMessage("The TrilinosWrappers use Epetra internally which " "uses 'signed int' to represent local indices. " "Therefore, only 2,147,483,647 nonzero matrix " @@ -389,7 +389,7 @@ namespace TrilinosWrappers AssertThrow(std::accumulate(n_entries_per_row.begin(), n_entries_per_row.end(), std::uint64_t(0)) < - std::numeric_limits::max(), + static_cast(std::numeric_limits::max()), ExcMessage("The TrilinosWrappers use Epetra internally which " "uses 'signed int' to represent local indices. " "Therefore, only 2,147,483,647 nonzero matrix "