summaryrefslogtreecommitdiff
path: root/osrng.h
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 /osrng.h
parent5c4c631e9291c57e237d6d40bb2c3456eb597f3d (diff)
downloadcryptopp-git-f7e6af6344f2b1f3e4a6afe1ac2cc870af2d3944.tar.gz
Add EnumToInt conversion macro for enum-enum conversion warnings (GH #1016)
Diffstat (limited to 'osrng.h')
-rw-r--r--osrng.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/osrng.h b/osrng.h
index 60b02cfd..bd534d58 100644
--- a/osrng.h
+++ b/osrng.h
@@ -245,7 +245,7 @@ void AutoSeededX917RNG<BLOCK_CIPHER>::Reseed(bool blocking, const byte *input, s
{
enum {BlockSize=BLOCK_CIPHER::BLOCKSIZE};
enum {KeyLength=BLOCK_CIPHER::DEFAULT_KEYLENGTH};
- enum {SeedSize=static_cast<int>(BlockSize)+static_cast<int>(KeyLength)};
+ enum {SeedSize=EnumToInt(BlockSize)+EnumToInt(KeyLength)};
SecByteBlock seed(SeedSize), temp(SeedSize);
const byte label[] = "X9.17 key generation";