summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2018-02-26 16:44:38 +0100
committerEike Rathke <erack@redhat.com>2018-02-26 16:45:33 +0100
commit34a5b1d6d87c8a35e158b96bc5d89dd427b09d64 (patch)
treeeacd6f7326194373da42c3ae5e5ffefb970d2e6c /comphelper/source
parent942f05996bc287923cdbcae12c64e57adf8ec975 (diff)
Use unsigned char, it is..
Change-Id: I691f138faf53846cb55db589dcf2f87d70d35b8d
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/hash.cxx4
1 files changed, 2 insertions, 2 deletions
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] );