summaryrefslogtreecommitdiff
path: root/rabbit.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2021-03-09 22:51:19 -0500
committerJeffrey Walton <noloader@gmail.com>2021-03-09 22:51:19 -0500
commitf7e6af6344f2b1f3e4a6afe1ac2cc870af2d3944 (patch)
tree49c9d4a6760efec8114df7366a007befd08c5b5a /rabbit.cpp
parent5c4c631e9291c57e237d6d40bb2c3456eb597f3d (diff)
downloadcryptopp-git-f7e6af6344f2b1f3e4a6afe1ac2cc870af2d3944.tar.gz
Add EnumToInt conversion macro for 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 0b6d8273..4f655111 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 & static_cast<int>(INPUT_NULL)) != static_cast<int>(INPUT_NULL))
+ if ((operation & EnumToInt(INPUT_NULL)) != EnumToInt(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 & static_cast<int>(INPUT_NULL)) != static_cast<int>(INPUT_NULL))
+ if ((operation & EnumToInt(INPUT_NULL)) != EnumToInt(INPUT_NULL))
xorbuf(output, input, GetBytesPerIteration() * iterationCount);
}