diff options
author | Jeffrey Walton <noloader@gmail.com> | 2021-03-09 22:51:19 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2021-03-09 22:51:19 -0500 |
commit | f7e6af6344f2b1f3e4a6afe1ac2cc870af2d3944 (patch) | |
tree | 49c9d4a6760efec8114df7366a007befd08c5b5a /hc128.cpp | |
parent | 5c4c631e9291c57e237d6d40bb2c3456eb597f3d (diff) | |
download | cryptopp-git-f7e6af6344f2b1f3e4a6afe1ac2cc870af2d3944.tar.gz |
Add EnumToInt conversion macro for enum-enum conversion warnings (GH #1016)
Diffstat (limited to 'hc128.cpp')
-rw-r--r-- | hc128.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 & static_cast<int>(INPUT_NULL)) != static_cast<int>(INPUT_NULL))
+ if ((operation & EnumToInt(INPUT_NULL)) != EnumToInt(INPUT_NULL))
{
xorbuf(output, input, BYTES_PER_ITERATION);
input += BYTES_PER_ITERATION;
|