filter/source/msfilter/rtfutil.cxx  |    2 +-
 include/filter/msfilter/rtfutil.hxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3c7c19ca034e7525db6db73d618f8ac4c9dedb5d
Author:     Rene Lopez Araiza <[email protected]>
AuthorDate: Mon Dec 8 22:55:19 2025 -0600
Commit:     Ilmari Lauhakangas <[email protected]>
CommitDate: Thu Dec 18 14:17:44 2025 +0100

    tdf#114441 Use sal_uInt32 for OutHex parameter
    
    OutHex only handles small values, so a fixed 32-bit type is sufficient.
    
    Change-Id: I2c4452ebfa933abf664f4f5eb4a0114fbc6a7648
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195264
    Tested-by: Jenkins
    Reviewed-by: Ilmari Lauhakangas <[email protected]>

diff --git a/filter/source/msfilter/rtfutil.cxx 
b/filter/source/msfilter/rtfutil.cxx
index bae28204b279..1c8463c71aba 100644
--- a/filter/source/msfilter/rtfutil.cxx
+++ b/filter/source/msfilter/rtfutil.cxx
@@ -96,7 +96,7 @@ void WrapOle1InOle2(SvStream& rOle1, sal_uInt32 nOle1Size, 
SvStream& rOle2,
 
 namespace msfilter::rtfutil
 {
-OString OutHex(sal_uLong nHex, sal_uInt8 nLen)
+OString OutHex(sal_uInt32 nHex, sal_uInt8 nLen)
 {
     char aNToABuf[] = "0000000000000000";
 
diff --git a/include/filter/msfilter/rtfutil.hxx 
b/include/filter/msfilter/rtfutil.hxx
index fd384633db8f..b7ad803551c3 100644
--- a/include/filter/msfilter/rtfutil.hxx
+++ b/include/filter/msfilter/rtfutil.hxx
@@ -23,7 +23,7 @@ class SvStream;
 namespace msfilter::rtfutil
 {
 /// Outputs a single character in hex form.
-MSFILTER_DLLPUBLIC OString OutHex(sal_uLong nHex, sal_uInt8 nLen);
+MSFILTER_DLLPUBLIC OString OutHex(sal_uInt32 nHex, sal_uInt8 nLen);
 
 /// Handles correct unicode and legacy export of a single character.
 MSFILTER_DLLPUBLIC OString OutChar(sal_Unicode c, int* pUCMode, 
rtl_TextEncoding eDestEnc,

Reply via email to