From a088b9791aa19ecfe3baf551435773b039f1a12e Mon Sep 17 00:00:00 2001 From: Douglas Mencken Date: Mon, 16 Dec 2013 09:34:58 -0500 Subject: 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 Tested-by: Michael Stahl --- oox/source/crypto/AgileEngine.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'oox') diff --git a/oox/source/crypto/AgileEngine.cxx b/oox/source/crypto/AgileEngine.cxx index f56e669e9dce..86d7025b83d1 100644 --- a/oox/source/crypto/AgileEngine.cxx +++ b/oox/source/crypto/AgileEngine.cxx @@ -106,7 +106,7 @@ bool AgileEngine::calculateHashFinal(const OUString& rPassword, vector 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); -- cgit