summaryrefslogtreecommitdiff
path: root/hc128.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-09 21:56:24 -0500
committerJeffrey Walton <noloader@gmail.com>2021-03-09 21:56:24 -0500
commitde45ebeec15c8788ab721370e085f6299da06ee4 (patch)
treed4f00307d77daee723cd2f4db1b73a91189603ec /hc128.cpp
parentcb18daa163ec90ac1d5684d1dffee4f89e8eb015 (diff)
downloadcryptopp-git-de45ebeec15c8788ab721370e085f6299da06ee4.tar.gz
Clear C++20 enum-enum conversion warnings (GH #1016)
Diffstat (limited to 'hc128.cpp')
-rw-r--r--hc128.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/hc128.cpp b/hc128.cpp
index b734d6e5..8590b866 100644
--- a/hc128.cpp
+++ b/hc128.cpp
@@ -229,7 +229,7 @@ void HC128Policy::OperateKeystream(KeystreamOperation operation, byte *output, c
// writing the result to the output buffer. In all cases the
// keystream is written to the output buffer. The optional part is
// adding the input buffer and keystream.
- if ((operation & INPUT_NULL) != INPUT_NULL)
+ if ((operation & static_cast<int>(INPUT_NULL)) != static_cast<int>(INPUT_NULL))
{
xorbuf(output, input, BYTES_PER_ITERATION);
input += BYTES_PER_ITERATION;