From 8578383e2ca293480a2b80ccfe117488a580f25a Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 3 Sep 2017 20:33:01 -0400 Subject: [PATCH] Switch to static_cast --- poly1305.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;