From 221e43fcf2aa69b64cd2673b8e066b7d96929def 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 18:49:43 +0100 Subject: [PATCH] Fix of comparison warning in TNL_ASSERT. --- src/TNL/Matrices/SparseMatrix.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TNL/Matrices/SparseMatrix.hpp b/src/TNL/Matrices/SparseMatrix.hpp index b895fd024a..e348eed8d6 100644 --- a/src/TNL/Matrices/SparseMatrix.hpp +++ b/src/TNL/Matrices/SparseMatrix.hpp @@ -988,7 +988,7 @@ operator=( const RHSMatrix& matrix ) TNL_ASSERT_LT( rowIdx - baseRow, bufferRowsCount, "" ); TNL_ASSERT_LT( localIdx, maxRowLength, "" ); const IndexType bufferIdx = ( rowIdx - baseRow ) * maxRowLength + localIdx; - TNL_ASSERT_LT( bufferIdx, bufferSize, "" ); + TNL_ASSERT_LT( bufferIdx, ( IndexType ) bufferSize, "" ); matrixColumnsBuffer_view[ bufferIdx ] = columnIndex; matrixValuesBuffer_view[ bufferIdx ] = value; //printf( "TO BUFFER: rowIdx = %d localIdx = %d bufferIdx = %d column = %d value = %d \n", rowIdx, localIdx, bufferIdx, columnIndex, value ); -- GitLab