summaryrefslogtreecommitdiff
path: root/poly1305.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2017-09-03 20:33:01 -0400
committerJeffrey Walton <noloader@gmail.com>2017-09-03 20:33:01 -0400
commit8578383e2ca293480a2b80ccfe117488a580f25a (patch)
treeceed8b9fdf9df0e0450ee8bf6b101063a25f4922 /poly1305.cpp
parente7974c7915c90815cc00fa3500e0815ff693169f (diff)
downloadcryptopp-git-8578383e2ca293480a2b80ccfe117488a580f25a.tar.gz
Switch to static_cast
Diffstat (limited to 'poly1305.cpp')
-rw-r--r--poly1305.cpp2
1 files changed, 1 insertions, 1 deletions
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<T>::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<unsigned int>(BLOCKSIZE));
m_cipher.SetKey(key, length);
key += length;