aboutsummaryrefslogtreecommitdiffstats
path: root/src/security/digest/sha1/sha1MessageDigest.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2012-12-12 15:35:55 +0000
committerVincent Richard <[email protected]>2012-12-12 15:35:55 +0000
commit3a5621c2aa3931be608508d4fadc42c2a09cb251 (patch)
treea39a344cbacdc9524122536ecbf8866e225e8230 /src/security/digest/sha1/sha1MessageDigest.cpp
parentDo not re-encode data if it is already encoded (thanks to Mehmet Bozkurt). (diff)
downloadvmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.tar.gz
vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.zip
Trivial 64-bit warning fixes.
Diffstat (limited to 'src/security/digest/sha1/sha1MessageDigest.cpp')
-rw-r--r--src/security/digest/sha1/sha1MessageDigest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/security/digest/sha1/sha1MessageDigest.cpp b/src/security/digest/sha1/sha1MessageDigest.cpp
index e4bcea41..3fb102ff 100644
--- a/src/security/digest/sha1/sha1MessageDigest.cpp
+++ b/src/security/digest/sha1/sha1MessageDigest.cpp
@@ -108,10 +108,10 @@ void sha1MessageDigest::update(const byte_t* buffer, const unsigned long len)
j = (m_count[0] >> 3) & 63;
- if ((m_count[0] += len << 3) < (len << 3))
+ if ((m_count[0] += static_cast <unsigned int>(len << 3)) < static_cast <unsigned int>(len << 3))
m_count[1]++;
- m_count[1] += (len >> 29);
+ m_count[1] += static_cast <unsigned int>(len >> 29);
if ((j + len) > 63)
{