filter/source/msfilter/msdffimp.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit d0ef0cda308f6e1d2fdee28822e38a6c92068f2f
Author:     ayagamal-tech <[email protected]>
AuthorDate: Mon Jan 26 14:35:40 2026 +0200
Commit:     Mike Kaganski <[email protected]>
CommitDate: Thu Feb 19 11:02:29 2026 +0100

    tdf#114441 Convert use of sal_uLong to sal_uInt32
    
    sal_uInt32 safely covers all possible small values and used single
    constant sum variable.
    
    Signed-off-by: ayagamal-tech <[email protected]>
    Change-Id: I9c8027bf9652ac200e78f7a94231f08cda7ab8a0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198149
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index 0776fcca92f0..3e027ebf5faf 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -3886,11 +3886,11 @@ rtl::Reference<SdrObject> 
SvxMSDffManager::ImportGraphic( SvStream& rSt, SfxItem
                 }
                 if (bOk && DFF_msofbtBSE == aHd.nRecType)
                 {
-                    const sal_uInt8 nSkipBLIPLen = 20;
-                    const sal_uInt8 nSkipShapePos = 4;
-                    const sal_uInt8 nSkipBLIP = 4;
-                    const sal_uLong nSkip =
-                        nSkipBLIPLen + 4 + nSkipShapePos + 4 + nSkipBLIP;
+                    const sal_uInt32 nSkip = 20 // SkipBLIP length
+                                             + 4 // spacing
+                                             + 4 // SkipShape position
+                                             + 4 // spacing
+                                             + 4; // SkipBLIP
 
                     if (nSkip <= aHd.nRecLen)
                     {

Reply via email to