This is an automated email from the ASF dual-hosted git repository.

damjan pushed a commit to branch windows-amd64
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 4042308da106d31a43e5616acb83c45bf6d1315a
Author: Damjan Jovanovic <dam...@apache.org>
AuthorDate: Thu Jan 2 21:44:55 2025 +0200

    Fix a time calculation on Win64.
    
    Patch by: me
---
 main/vcl/source/window/scrwnd.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/vcl/source/window/scrwnd.cxx 
b/main/vcl/source/window/scrwnd.cxx
index 964165b1f9..5a7d8542a3 100644
--- a/main/vcl/source/window/scrwnd.cxx
+++ b/main/vcl/source/window/scrwnd.cxx
@@ -391,12 +391,12 @@ IMPL_LINK( ImplWheelWindow, ImplScrollHdl, Timer*, 
EMPTYARG )
 
         if ( !ImplCallPreNotify( aNCmdEvt ) )
         {
-            const sal_uLong nTime = Time::GetSystemTicks();
+            const sal_uIntPtr nTime = Time::GetSystemTicks();
                        ImplDelData aDel( this );
             pWindow->Command( aCEvt );
                        if( aDel.IsDead() )
                                return 0;
-            mnRepaintTime = Max( Time::GetSystemTicks() - nTime, 1UL );
+            mnRepaintTime = Max( Time::GetSystemTicks() - nTime, 
sal_uIntPtr(1UL) );
             ImplRecalcScrollValues();
         }
     }

Reply via email to