diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-08-20 14:08:27 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-08-20 14:08:27 -0400 |
commit | 3ad077ad8277a51c7049aa78eacc8a45688172f8 (patch) | |
tree | b502a5bda4670c2cc2dff9b285cffeacb1542950 /modes.cpp | |
parent | 2f906a031bf723f345d38d9fb9665c7b14f90faf (diff) | |
download | cryptopp-git-3ad077ad8277a51c7049aa78eacc8a45688172f8.tar.gz |
Clear conversion wanrings under MSVC
Diffstat (limited to 'modes.cpp')
-rw-r--r-- | modes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -125,7 +125,7 @@ void CTR_ModePolicy::SeekToIteration(lword iterationCount) int carry=0;
for (int i=BlockSize()-1; i>=0; i--)
{
- unsigned int sum = m_register[i] + (iterationCount & 0xff) + carry;
+ unsigned int sum = (unsigned int)m_register[i] + (iterationCount & 0xff) + carry;
m_counterArray[i] = byte(sum & 0xff);
carry = sum >> 8;
iterationCount >>= 8;
|