basic/source/sbx/sbxarray.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit bd279d30025e13125e9c5736f7baa9b00484156d Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue May 31 20:40:55 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Tue May 31 22:42:34 2022 +0200 Use more appropriate index variable type Change-Id: I0a6de93876d316a1aa094cf98dc2ee5c7eddebbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135205 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx index 4bd933b126ad..ec95e5e10602 100644 --- a/basic/source/sbx/sbxarray.cxx +++ b/basic/source/sbx/sbxarray.cxx @@ -24,6 +24,7 @@ #include <basic/sbx.hxx> #include <runtime.hxx> +#include <cstddef> #include <optional> struct SbxVarEntry @@ -562,7 +563,7 @@ bool SbxDimArray::StoreData( SvStream& rStrm ) const { assert(m_vDimensions.size() <= sal::static_int_cast<size_t>(std::numeric_limits<sal_Int16>::max())); rStrm.WriteInt16( m_vDimensions.size() ); - for( sal_Int32 i = 1; i <= static_cast<sal_Int32>(m_vDimensions.size()); i++ ) + for( std::size_t i = 1; i <= m_vDimensions.size(); i++ ) { sal_Int32 lb32, ub32; GetDim(i, lb32, ub32);