[Libreoffice-commits] core.git: comphelper/source
Eike Rathke
erack at redhat.com
Mon Feb 26 15:45:57 UTC 2018
comphelper/source/misc/hash.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 34a5b1d6d87c8a35e158b96bc5d89dd427b09d64
Author: Eike Rathke <erack at redhat.com>
Date: Mon Feb 26 16:44:38 2018 +0100
Use unsigned char, it is..
Change-Id: I691f138faf53846cb55db589dcf2f87d70d35b8d
diff --git a/comphelper/source/misc/hash.cxx b/comphelper/source/misc/hash.cxx
index 2101bee64629..8d709daa75f7 100644
--- a/comphelper/source/misc/hash.cxx
+++ b/comphelper/source/misc/hash.cxx
@@ -230,8 +230,8 @@ std::vector<unsigned char> Hash::calculateHash(
{
vPass.resize( nPassBytesLen);
std::copy( pPassBytes, pPassBytes + nPassBytesLen, vPass.begin());
- sal_uInt8* p = reinterpret_cast<sal_uInt8*>(vPass.data());
- sal_uInt8 const * const pEnd = p + nPassBytesLen;
+ unsigned char* p = vPass.data();
+ unsigned char const * const pEnd = p + nPassBytesLen;
for ( ; p < pEnd; p += 2 )
{
std::swap( p[0], p[1] );
More information about the Libreoffice-commits
mailing list