diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-03-09 21:56:24 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-03-09 21:56:24 -0500 |
commit | de45ebeec15c8788ab721370e085f6299da06ee4 (patch) | |
tree | d4f00307d77daee723cd2f4db1b73a91189603ec /rabbit.cpp | |
parent | cb18daa163ec90ac1d5684d1dffee4f89e8eb015 (diff) | |
download | cryptopp-git-de45ebeec15c8788ab721370e085f6299da06ee4.tar.gz |
Clear C++20 enum-enum conversion warnings (GH #1016)
Diffstat (limited to 'rabbit.cpp')
-rw-r--r-- | rabbit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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);
}
|