sc/inc/fillinfo.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0eb49566434cf7edd9d277e59a2801c6c7b8665b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Feb 15 09:15:01 2022 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Feb 15 15:22:32 2022 +0100 cid#1498147 silence Improper use of negative value and cid#1498148 Improper use of negative value Change-Id: I651ea2673c740b5563c894290dd4c130b5f2ee7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129957 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/sc/inc/fillinfo.hxx b/sc/inc/fillinfo.hxx index 0bc72e4e3ed3..dc1fc5ada0ab 100644 --- a/sc/inc/fillinfo.hxx +++ b/sc/inc/fillinfo.hxx @@ -180,8 +180,9 @@ struct RowInfo CellInfo& cellInfo(SCCOL nCol) { + assert( nCol >= -1 ); #ifdef DBG_UTIL - assert( nCol >= -1 && nCol <= nCols + 1 ); + assert( nCol <= nCols + 1 ); #endif return pCellInfo[ nCol + 1 ]; }