diff --git a/poly1305.cpp b/poly1305.cpp index 9bef7585..7125b102 100644 --- a/poly1305.cpp +++ b/poly1305.cpp @@ -17,7 +17,7 @@ void Poly1305_Base::UncheckedSetKey(const byte *key, unsigned int length, con if (key && length) { // key is {k,r} pair, r is 16 bytes - length = SaturatingSubtract(length, (unsigned)BLOCKSIZE); + length = SaturatingSubtract(length, static_cast(BLOCKSIZE)); m_cipher.SetKey(key, length); key += length;