winaccessibility/source/UAccCOM/AccTable.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 61576dbeda71add6bd36da628bd3b626aa823a77
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Sat Sep 17 12:49:44 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Sat Sep 17 14:33:32 2022 +0200

    loplugin:loopvartoosmall (clang-cl)
    
    Change-Id: I8925e28d46f1ed983581b539cfbe6a01c034e0ce
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140098
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/winaccessibility/source/UAccCOM/AccTable.cxx 
b/winaccessibility/source/UAccCOM/AccTable.cxx
index 16eea5bb533d..472f0d8f23ca 100644
--- a/winaccessibility/source/UAccCOM/AccTable.cxx
+++ b/winaccessibility/source/UAccCOM/AccTable.cxx
@@ -1040,7 +1040,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP 
CAccTable::get_selectedChildren(long, long **c
     *nChildren = nChildCount;
     *children = static_cast<long*>(CoTaskMemAlloc(nChildCount * sizeof(long)));
 
-    for( long i = 0; i< nChildCount; i++)
+    for( sal_Int64 i = 0; i< nChildCount; i++)
     {
         Reference<XAccessible> pRAcc = 
pRSelection->getSelectedAccessibleChild(i);
         if(pRAcc.is())
@@ -1102,7 +1102,7 @@ COM_DECLSPEC_NOTHROW STDMETHODIMP 
CAccTable::get_selectedCells(IUnknown * * * ce
 
     *cells = static_cast<IUnknown**>(CoTaskMemAlloc(nSelected * 
sizeof(IUnknown*)));
 
-    for (long i = 0; i < nSelected; i++)
+    for (sal_Int64 i = 0; i < nSelected; i++)
     {
         Reference<XAccessible> xAcc = 
xSelection->getSelectedAccessibleChild(i);
         assert(xAcc.is());

Reply via email to