aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/block/kasumi/kasumi.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/kasumi/kasumi.cpp
parente58f66ae5f07f31419a819ded874fcf39aa1fdc6 (diff)
Fix some cast warnings from Sonar
Diffstat (limited to 'src/lib/block/kasumi/kasumi.cpp')
-rw-r--r--src/lib/block/kasumi/kasumi.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/block/kasumi/kasumi.cpp b/src/lib/block/kasumi/kasumi.cpp
index 92ad5dd14..ed2524e0b 100644
--- a/src/lib/block/kasumi/kasumi.cpp
+++ b/src/lib/block/kasumi/kasumi.cpp
@@ -100,7 +100,7 @@ uint16_t FI(uint16_t I, uint16_t K)
D7 ^= (K >> 9);
D9 = KASUMI_SBOX_S9[D9 ^ (K & 0x1FF)] ^ D7;
D7 = KASUMI_SBOX_S7[D7] ^ (D9 & 0x7F);
- return (D7 << 9) | D9;
+ return static_cast<uint16_t>(D7 << 9) | D9;
}
}