diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2023-08-09 18:00:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-09 22:34:16 +0200 |
commit | c1d690d8c478a9d2692a89cbb982b59df5438972 (patch) | |
tree | c058c9d3a1f2d0c6d6b0f6e410b0e6c77b1ca2d8 /emfio/source/reader | |
parent | use sal_uInt64 when dealing with stream position (diff) | |
download | core-c1d690d8c478a9d2692a89cbb982b59df5438972.tar.gz core-c1d690d8c478a9d2692a89cbb982b59df5438972.zip |
use sal_uInt64 when dealing with stream position
Change-Id: I34a8ec2f69d9d58f8847e9cfb45937eae6159590
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155528
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'emfio/source/reader')
-rw-r--r-- | emfio/source/reader/emfreader.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index 73a082eae2e8..f1ac4ff7eda5 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -1475,7 +1475,7 @@ namespace emfio sal_uInt32 BkColorSrc(0), iUsageSrc(0), offBmiSrc(0); sal_uInt32 cbBmiSrc(0), offBitsSrc(0), cbBitsSrc(0); - sal_uInt32 nStart = mpInputStream->Tell() - 8; + sal_uInt64 nStart = mpInputStream->Tell() - 8; mpInputStream->SeekRel( 0x10 ); mpInputStream->ReadInt32( xDest ).ReadInt32( yDest ).ReadInt32( cxDest ).ReadInt32( cyDest ); @@ -1636,7 +1636,7 @@ namespace emfio sal_uInt32 dwRop, iUsageSrc, offBmiSrc, cbBmiSrc, offBitsSrc, cbBitsSrc; XForm xformSrc; - sal_uInt32 nStart = mpInputStream->Tell() - 8; + sal_uInt64 nStart = mpInputStream->Tell() - 8; mpInputStream->SeekRel( 0x10 ); mpInputStream->ReadInt32( xDest ).ReadInt32( yDest ).ReadInt32( cxDest ).ReadInt32( cyDest ).ReadUInt32( dwRop ).ReadInt32( xSrc ).ReadInt32( ySrc ) @@ -1712,7 +1712,7 @@ namespace emfio { sal_Int32 xDest, yDest, xSrc, ySrc, cxSrc, cySrc, cxDest, cyDest; sal_uInt32 offBmiSrc, cbBmiSrc, offBitsSrc, cbBitsSrc, iUsageSrc, dwRop; - sal_uInt32 nStart = mpInputStream->Tell() - 8; + sal_uInt64 nStart = mpInputStream->Tell() - 8; mpInputStream->SeekRel( 0x10 ); mpInputStream->ReadInt32( xDest ) @@ -2075,7 +2075,7 @@ namespace emfio case EMR_CREATEDIBPATTERNBRUSHPT : { - sal_uInt32 nStart = mpInputStream->Tell() - 8; + sal_uInt64 nStart = mpInputStream->Tell() - 8; Bitmap aBitmap; mpInputStream->ReadUInt32( nIndex ); @@ -2256,8 +2256,8 @@ namespace emfio SAL_INFO("emfio", "\tMetafile size: " << mnEndPos); mnEndPos += mnStartPos; - sal_uInt32 nStrmPos = mpInputStream->Tell(); // checking if mnEndPos is valid - sal_uInt32 nActualFileSize = nStrmPos + mpInputStream->remainingSize(); + sal_uInt64 nStrmPos = mpInputStream->Tell(); // checking if mnEndPos is valid + sal_uInt64 nActualFileSize = nStrmPos + mpInputStream->remainingSize(); if ( nActualFileSize < mnEndPos ) { |