From e4c051b57f3d5e8943c58609f5062129427a40b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Oberhuber?= <oberhuber.tomas@gmail.com> Date: Fri, 5 Feb 2021 14:45:29 +0100 Subject: [PATCH] Fix of comparison warning in TNL_ASSERT. --- src/TNL/Matrices/SparseMatrixView.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TNL/Matrices/SparseMatrixView.hpp b/src/TNL/Matrices/SparseMatrixView.hpp index 08ac0143a8..d4ea65b3d2 100644 --- a/src/TNL/Matrices/SparseMatrixView.hpp +++ b/src/TNL/Matrices/SparseMatrixView.hpp @@ -510,7 +510,7 @@ rowsReduction( IndexType begin, IndexType end, Fetch& fetch, const Reduce& reduc const auto values_view = this->values.getConstView(); const IndexType paddingIndex_ = this->getPaddingIndex(); auto fetch_ = [=] __cuda_callable__ ( IndexType rowIdx, IndexType localIdx, IndexType globalIdx, bool& compute ) mutable -> decltype( fetch( IndexType(), IndexType(), RealType() ) ) { - TNL_ASSERT_LT( globalIdx, columns_view.getSize(), "" ); + TNL_ASSERT_LT( globalIdx, ( IndexType ) columns_view.getSize(), "" ); IndexType columnIdx = columns_view[ globalIdx ]; if( columnIdx != paddingIndex_ ) { -- GitLab