mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Cleared signed/unsigned warning under Visual Studio (Related to Issue 295)
This commit is contained in:
parent
6bfa0d9ab0
commit
91020ce3ba
2
misc.h
2
misc.h
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user