From 9a5d9a38e4323a283888734ce347f6a1facd0b89 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 25 Feb 2022 20:28:51 -0700 Subject: [PATCH] Avoid a warning about comparison of differently sized integers. --- source/distributed/tria.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 80ee4022e0..1bbe85e190 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -1514,7 +1514,7 @@ namespace const unsigned int weight = *this_object->current_pointer; ++this_object->current_pointer; - Assert(weight < std::numeric_limits::max(), + Assert(weight < static_cast(std::numeric_limits::max()), ExcMessage("p4est uses 'signed int' to represent the partition " "weights for cells. The weight provided here exceeds " "the maximum value represented as a 'signed int'.")); -- 2.39.5