Clear conversion wanrings under MSVC

pull/709/head
Jeffrey Walton 2018-08-20 14:08:27 -04:00
parent 2f906a031b
commit 3ad077ad82
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ void CTR_ModePolicy::SeekToIteration(lword iterationCount)
int carry=0; int carry=0;
for (int i=BlockSize()-1; i>=0; i--) 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); m_counterArray[i] = byte(sum & 0xff);
carry = sum >> 8; carry = sum >> 8;
iterationCount >>= 8; iterationCount >>= 8;