From ecac50e24f66a017f73be4a2346de185820f1500 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 1 Mar 2022 16:38:40 -0700 Subject: [PATCH] Avoid integer comparison warning. --- source/lac/trilinos_sparsity_pattern.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 " -- 2.39.5