[Libreoffice-commits] core.git: oox/source

Douglas Mencken dougmencken at gmail.com
Mon Dec 16 06:44:33 PST 2013


 oox/source/crypto/AgileEngine.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a088b9791aa19ecfe3baf551435773b039f1a12e
Author: Douglas Mencken <dougmencken at gmail.com>
Date:   Mon Dec 16 09:34:58 2013 -0500

    Use sal_Int32 to satisfy oox/helper/helper.hxx's convertLittleEndian
    
    Fixes build error "no matching function for call to oox::ByteOrderConverter::convertLittleEndian(int&)"
    
    Change-Id: I899f151ff99737247ce4090f59897eba842c40ba
    Reviewed-on: https://gerrit.libreoffice.org/7099
    Reviewed-by: Michael Stahl <mstahl at redhat.com>
    Tested-by: Michael Stahl <mstahl at redhat.com>

diff --git a/oox/source/crypto/AgileEngine.cxx b/oox/source/crypto/AgileEngine.cxx
index f56e669..86d7025 100644
--- a/oox/source/crypto/AgileEngine.cxx
+++ b/oox/source/crypto/AgileEngine.cxx
@@ -106,7 +106,7 @@ bool AgileEngine::calculateHashFinal(const OUString& rPassword, vector<sal_uInt8
 
     vector<sal_uInt8> data(mInfo.hashSize + 4, 0);
 
-    for (int i = 0; i < mInfo.spinCount; i++)
+    for (sal_Int32 i = 0; i < mInfo.spinCount; i++)
     {
         ByteOrderConverter::writeLittleEndian( &data[0], i );
         std::copy(hash.begin(), hash.end(), data.begin() + 4);


More information about the Libreoffice-commits mailing list