aboutsummaryrefslogtreecommitdiffstats
path: root/src/md2.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-07-23 15:44:04 +0000
committerlloyd <[email protected]>2007-07-23 15:44:04 +0000
commite2f1f734277146d817ab284dea21e4013cb5b937 (patch)
tree21ad6ee775e36aa7fb24a504077200c22b1f15b8 /src/md2.cpp
parent211c4929ae92106794984d872a0cae1a873baa29 (diff)
Avoid C-style casts (as detected by GCC's -Wold-style-cast) and instead use
static_cast or reinterpret_cast, as needed.
Diffstat (limited to 'src/md2.cpp')
-rw-r--r--src/md2.cpp2
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);