aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/mac/cmac
diff options
context:
space:
mode:
authorgit <[email protected]>2015-04-08 04:04:55 +0000
committerlloyd <[email protected]>2015-04-08 04:04:55 +0000
commit62947773cedb0c9534c5df91271db9a9414e6e2a (patch)
treeb1a891aca42784136ed58e0d0b90c81159caf0f6 /src/lib/mac/cmac
parent4eccc8f01e9ce6ce72b90731dc72cb30d383f0aa (diff)
Fix code that triggers a strange MSVC 'performance warning'
Github pull 74 from Chris Desjardins
Diffstat (limited to 'src/lib/mac/cmac')
-rw-r--r--src/lib/mac/cmac/cmac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mac/cmac/cmac.cpp b/src/lib/mac/cmac/cmac.cpp
index e56aa145b..bb9d1c367 100644
--- a/src/lib/mac/cmac/cmac.cpp
+++ b/src/lib/mac/cmac/cmac.cpp
@@ -27,7 +27,7 @@ BOTAN_REGISTER_NAMED_T(MessageAuthenticationCode, "CMAC", CMAC, CMAC::make);
*/
secure_vector<byte> CMAC::poly_double(const secure_vector<byte>& in)
{
- const bool top_carry = static_cast<bool>(in[0] & 0x80);
+ const bool top_carry = static_cast<bool>((in[0] & 0x80) != 0);
secure_vector<byte> out = in;