summaryrefslogtreecommitdiff
path: root/oox/source/crypto/CryptTools.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-03-23 19:33:45 +0100
committerTomaž Vajngerl <tomaz.vajngerl@collabora.com>2014-03-23 19:35:22 +0100
commit45c1c853544d5bafbce5ea086c9f06347f763ee5 (patch)
tree4a526697fe4d47efee00b57798b55a0e40db1a1e /oox/source/crypto/CryptTools.cxx
parentf516cff220895391c861adf1f4e93e280e1c3a17 (diff)
oox: cast to avoid compile error
Change-Id: I1ef4f4917f2b97d44c9b39f36fd17b0be6995a4e
Diffstat (limited to 'oox/source/crypto/CryptTools.cxx')
-rw-r--r--oox/source/crypto/CryptTools.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/crypto/CryptTools.cxx b/oox/source/crypto/CryptTools.cxx
index 414c6dbc09b2..69015810a671 100644
--- a/oox/source/crypto/CryptTools.cxx
+++ b/oox/source/crypto/CryptTools.cxx
@@ -290,15 +290,16 @@ bool Digest::update(std::vector<sal_uInt8>& input)
bool Digest::finalize(std::vector<sal_uInt8>& digest)
{
digest.clear();
- sal_uInt32 digestWrittenLength;
#if USE_TLS_OPENSSL
+ unsigned int digestWrittenLength;
digest.resize(getLength(), 0);
EVP_DigestFinal_ex(mpContext, &digest[0], &digestWrittenLength);
#endif
#if USE_TLS_NSS
- sal_uInt32 digestLength = getLength();
+ unsigned int digestWrittenLength;
+ unsigned int digestLength = static_cast<unsigned int>(getLength());
digest.resize(digestLength, 0);
HASH_End(mpContext, &digest[0], &digestWrittenLength, digestLength);
#endif