svl/source/numbers/zformat.cxx |    4 ++--
 tools/source/misc/fix16.cxx    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 2a9ae694832202bec6c966a1ec8015c1ae215908
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Jul 25 21:33:18 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Jul 26 10:42:00 2024 +0200

    tools#1608074 silence Overflowed return value
    
    Change-Id: Id1db2d006a82e08e6e011be5c5fcfa515381ad44
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171060
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/tools/source/misc/fix16.cxx b/tools/source/misc/fix16.cxx
index 5818d5c1e55f..95104bbbb9de 100644
--- a/tools/source/misc/fix16.cxx
+++ b/tools/source/misc/fix16.cxx
@@ -70,7 +70,7 @@ fix16_t fix16_mul(fix16_t inArg0, fix16_t inArg1)
             return fix16_overflow;
     }
 
-    fix16_t result = product >> 16;
+    fix16_t result = static_cast<fix16_t>(product >> 16);
     result += (product & 0x8000) >> 15;
 
     return result;
commit 8da216bb4b40f285317247a2c2d8bd1076c332cd
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Thu Jul 25 21:22:30 2024 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Jul 26 10:41:52 2024 +0200

    cid#1608367 silence Overflowed return value
    
    Change-Id: I842a64e70814bfed4c04d25734a8b43dca85ca15
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171059
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx
index 8576a6dbfdb8..e66542f2d445 100644
--- a/svl/source/numbers/zformat.cxx
+++ b/svl/source/numbers/zformat.cxx
@@ -1466,7 +1466,7 @@ namespace {
 
 sal_Unicode toUniChar(sal_uInt8 n)
 {
-    char c;
+    sal_Unicode c;
     if (n < 10)
     {
         c = '0' + n;
@@ -1475,7 +1475,7 @@ sal_Unicode toUniChar(sal_uInt8 n)
     {
         c = 'A' + n - 10;
     }
-    return sal_Unicode(c);
+    return c;
 }
 
 bool IsCombiningSymbol( OUStringBuffer& rStringBuffer, sal_Int32 nPos )

Reply via email to