diff options
| author | Vincent Richard <[email protected]> | 2012-12-12 15:35:55 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2012-12-12 15:35:55 +0000 |
| commit | 3a5621c2aa3931be608508d4fadc42c2a09cb251 (patch) | |
| tree | a39a344cbacdc9524122536ecbf8866e225e8230 /src/security/digest/md5/md5MessageDigest.cpp | |
| parent | Do not re-encode data if it is already encoded (thanks to Mehmet Bozkurt). (diff) | |
| download | vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.tar.gz vmime-3a5621c2aa3931be608508d4fadc42c2a09cb251.zip | |
Trivial 64-bit warning fixes.
Diffstat (limited to 'src/security/digest/md5/md5MessageDigest.cpp')
| -rw-r--r-- | src/security/digest/md5/md5MessageDigest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/security/digest/md5/md5MessageDigest.cpp b/src/security/digest/md5/md5MessageDigest.cpp index 84ca99ae..f803a6e4 100644 --- a/src/security/digest/md5/md5MessageDigest.cpp +++ b/src/security/digest/md5/md5MessageDigest.cpp @@ -211,8 +211,8 @@ void md5MessageDigest::finalize() memset(p, 0, padding); - reinterpret_cast <vmime_uint32*>(m_block)[14] = (m_byteCount << 3); - reinterpret_cast <vmime_uint32*>(m_block)[15] = (m_byteCount >> 29); + reinterpret_cast <vmime_uint32*>(m_block)[14] = static_cast <vmime_uint32>(m_byteCount << 3); + reinterpret_cast <vmime_uint32*>(m_block)[15] = static_cast <vmime_uint32>(m_byteCount >> 29); #if VMIME_BYTE_ORDER_BIG_ENDIAN swapUint32Array((vmime_uint32*) m_block, (64 - 8) / 4); |
