package/inc/PackageConstants.hxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fa10be85d2ae4b8198979c4c1024fe43e2e8e4be
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Jul 25 20:57:34 2024 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Jul 26 11:22:55 2024 +0200

    cid#1607270 silence Overflowed integer argument
    
    lets see if this works instead.
    
    Change-Id: Ib0a5df7deed2972cfed7c3afbe5c65229c208f26
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171056
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/package/inc/PackageConstants.hxx b/package/inc/PackageConstants.hxx
index 15cc4d3ee9b0..bbdba16ce5b8 100644
--- a/package/inc/PackageConstants.hxx
+++ b/package/inc/PackageConstants.hxx
@@ -22,13 +22,13 @@
 #include <sal/types.h>
 #include <rtl/ustring.hxx>
 
-const sal_Int32 n_ConstBufferSize = 32768;
+inline constexpr sal_Int32 n_ConstBufferSize = 32768;
 
 // by calculation of the digest we read 32 bytes more ( if available )
 // it allows to ignore the padding if the stream is longer than 
n_ConstDigestDecrypt since we read at least two blocks more;
 // if the stream is shorter or equal the padding will be done successfully
-const sal_Int32 n_ConstDigestLength = 1024;
-const sal_Int32 n_ConstDigestDecrypt = 1056; // 1024 + 32
+inline constexpr sal_Int32 n_ConstDigestLength = 1024;
+inline constexpr sal_Int32 n_ConstDigestDecrypt = 1056; // 1024 + 32
 
 // the constants related to the manifest.xml entries
 // these primarily exist so that ManifestImport can directly write into 
Sequence
  • core.git: package/inc Caolán McNamara (via logerrit)

Reply via email to