summaryrefslogtreecommitdiff
path: root/rabbit.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 /rabbit.cpp
parentcb18daa163ec90ac1d5684d1dffee4f89e8eb015 (diff)
downloadcryptopp-git-de45ebeec15c8788ab721370e085f6299da06ee4.tar.gz
Clear C++20 enum-enum conversion warnings (GH #1016)
Diffstat (limited to 'rabbit.cpp')
-rw-r--r--rabbit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/rabbit.cpp b/rabbit.cpp
index ef146259..0b6d8273 100644
--- a/rabbit.cpp
+++ b/rabbit.cpp
@@ -150,7 +150,7 @@ void RabbitPolicy::OperateKeystream(KeystreamOperation operation, byte *output,
// 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, GetBytesPerIteration() * iterationCount);
}
@@ -252,7 +252,7 @@ void RabbitWithIVPolicy::OperateKeystream(KeystreamOperation operation, byte *ou
// 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, GetBytesPerIteration() * iterationCount);
}