From: Martin Kronbichler Date: Wed, 7 Oct 2020 12:45:21 +0000 (+0200) Subject: Avoid warning 'unsigned expression < 0 always false' X-Git-Tag: v9.3.0-rc1~1024^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef8ad5f6de0005716d2a60f9648b18d6bb8b2d38;p=dealii.git Avoid warning 'unsigned expression < 0 always false' --- diff --git a/include/deal.II/base/point.h b/include/deal.II/base/point.h index 26ba0a7c37..90f31615c5 100644 --- a/include/deal.II/base/point.h +++ b/include/deal.II/base/point.h @@ -471,7 +471,7 @@ inline DEAL_II_CUDA_HOST_DEV Number Point::operator()(const unsigned int index) const { # ifndef __CUDA_ARCH__ - AssertIndexRange(index, dim); + AssertIndexRange(static_cast(index), dim); # endif return this->values[index]; } @@ -483,7 +483,7 @@ inline DEAL_II_CUDA_HOST_DEV Number & Point::operator()(const unsigned int index) { # ifndef __CUDA_ARCH__ - AssertIndexRange(index, dim); + AssertIndexRange(static_cast(index), dim); # endif return this->values[index]; }