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

asf-gitbox-commits pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 48f8cc8f699b12f766e669922446071e6902869c
Author: Damjan Jovanovic <[email protected]>
AuthorDate: Thu Jan 2 21:59:02 2025 +0200

    In ImplPreparePolyDraw(), nCurrPoints and nCurrPoint should be sal_uInt32,
    just like pPoints points to, which they are assigned from or related to.
    Commit 30f18d3fb8fe7eacd8ee5f353bc7c60bfbf18ac5 didn't fix all the uses
    of the pointer size change it made.
    
    Patch by: me
---
 main/vcl/win/source/gdi/salgdi.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main/vcl/win/source/gdi/salgdi.cxx 
b/main/vcl/win/source/gdi/salgdi.cxx
index fc033a8844..2aedc1c1fb 100644
--- a/main/vcl/win/source/gdi/salgdi.cxx
+++ b/main/vcl/win/source/gdi/salgdi.cxx
@@ -633,9 +633,9 @@ void ImplPreparePolyDraw( bool                              
                bCloseFigures,
     {
         const POINT* pCurrPoint = reinterpret_cast<const POINT*>( *pPtAry++ );
         const BYTE* pCurrFlag = *pFlgAry++;
-        const sal_uLong nCurrPoints = *pPoints++;
+        const sal_uInt32 nCurrPoints = *pPoints++;
         const bool bHaveFlagArray( pCurrFlag );
-        sal_uLong nCurrPoint;
+        sal_uInt32 nCurrPoint;
 
         if( nCurrPoints )
         {

Reply via email to