Cleared signed/unsigned warning under Visual Studio (Related to Issue 295)

This commit is contained in:
Jeffrey Walton 2016-09-21 22:10:03 -04:00
parent 6bfa0d9ab0
commit 91020ce3ba
2 changed files with 2 additions and 2 deletions

2
misc.h
View File

@ -867,7 +867,7 @@ inline T2 ModPowerOf2(const T1 &a, const T2 &b)
{
CRYPTOPP_ASSERT(IsPowerOf2(b));
// Coverity finding CID 170383 Overflowed return value (INTEGER_OVERFLOW)
return T2(a) & SaturatingSubtract(b,1);
return T2(a) & SaturatingSubtract(b,1U);
}
//! \brief Rounds a value down to a multiple of a second value

2
vmac.h
View File

@ -61,7 +61,7 @@ protected:
CRYPTOPP_BLOCKS_END(6)
bool m_is128, m_padCached, m_isFirstBlock;
int m_L1KeyLength;
unsigned int m_L1KeyLength;
};
//! \class VMAC