aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/misty1/misty1.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-01 06:51:06 -0400
committerJack Lloyd <[email protected]>2017-10-01 06:51:06 -0400
commit7b1fa2b7798264f2866eb80ca43181efddb66141 (patch)
tree9c24919a8b53e3baa5417ca7e7dac0883d0f8cc0 /src/lib/block/misty1/misty1.cpp
parente58f66ae5f07f31419a819ded874fcf39aa1fdc6 (diff)
Fix some cast warnings from Sonar
Diffstat (limited to 'src/lib/block/misty1/misty1.cpp')
-rw-r--r--src/lib/block/misty1/misty1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/block/misty1/misty1.cpp b/src/lib/block/misty1/misty1.cpp
index d6ac5f9a9..eaef86c8c 100644
--- a/src/lib/block/misty1/misty1.cpp
+++ b/src/lib/block/misty1/misty1.cpp
@@ -93,7 +93,7 @@ uint16_t FI(uint16_t input, uint16_t key7, uint16_t key9)
D9 = MISTY1_SBOX_S9[D9] ^ D7;
D7 = (MISTY1_SBOX_S7[D7] ^ key7 ^ D9) & 0x7F;
D9 = MISTY1_SBOX_S9[D9 ^ key9] ^ D7;
- return static_cast<uint16_t>((D7 << 9) | D9);
+ return static_cast<uint16_t>(D7 << 9) | D9;
}
}