From: Wolfgang Bangerth Date: Sat, 26 Feb 2022 03:28:51 +0000 (-0700) Subject: Avoid a warning about comparison of differently sized integers. X-Git-Tag: v9.4.0-rc1~440^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13453%2Fhead;p=dealii.git Avoid a warning about comparison of differently sized integers. --- 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'."));