Clear conversion warning

pull/687/head
Jeffrey Walton 2018-07-10 11:30:13 -04:00
parent 50f99ae802
commit 33a1baa1a5
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ void CTR_ModePolicy::OperateKeystream(KeystreamOperation /*operation*/, byte *ou
byte lsb = m_counterArray[s-1];
size_t blocks = UnsignedMin(iterationCount, 256U-lsb);
m_cipher->AdvancedProcessBlocks(m_counterArray, input, output, blocks*s, BlockTransformation::BT_InBlockIsCounter|BlockTransformation::BT_AllowParallel);
if ((m_counterArray[s-1] = lsb + (byte)blocks) == 0)
if ((m_counterArray[s-1] = static_cast<byte>(lsb + (blocks & 0xff))) == 0)
IncrementCounterBy256();
output = PtrAdd(output, blocks*s);