aboutsummaryrefslogtreecommitdiffstats
path: root/src/misty1.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/misty1.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/misty1.cpp')
-rw-r--r--src/misty1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misty1.cpp b/src/misty1.cpp
index 4df3ecc76..6405dc335 100644
--- a/src/misty1.cpp
+++ b/src/misty1.cpp
@@ -20,7 +20,7 @@ u16bit FI(u16bit input, u16bit key7, u16bit key9)
D9 = MISTY1_SBOX_S9[D9] ^ D7;
D7 = (MISTY1_SBOX_S7[D7] ^ key7 ^ D9) & 0x7F;
D9 = MISTY1_SBOX_S9[D9 ^ key9] ^ D7;
- return (u16bit)((D7 << 9) | D9);
+ return static_cast<u16bit>((D7 << 9) | D9);
}
}