diff options
Diffstat (limited to 'src/md2.cpp')
-rw-r--r-- | src/md2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/md2.cpp b/src/md2.cpp index a5a713574..8984f9f61 100644 --- a/src/md2.cpp +++ b/src/md2.cpp @@ -85,7 +85,7 @@ void MD2::add_data(const byte input[], u32bit length) void MD2::final_result(byte output[]) { for(u32bit j = position; j != HASH_BLOCK_SIZE; ++j) - buffer[j] = (byte)(HASH_BLOCK_SIZE - position); + buffer[j] = static_cast<byte>(HASH_BLOCK_SIZE - position); hash(buffer); hash(checksum); copy_mem(output, X.begin(), OUTPUT_LENGTH); |