From ef8ad5f6de0005716d2a60f9648b18d6bb8b2d38 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 7 Oct 2020 14:45:21 +0200 Subject: [PATCH] Avoid warning 'unsigned expression < 0 always false' --- include/deal.II/base/point.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; } -- 2.39.5