From 62947773cedb0c9534c5df91271db9a9414e6e2a Mon Sep 17 00:00:00 2001 From: git Date: Wed, 8 Apr 2015 04:04:55 +0000 Subject: Fix code that triggers a strange MSVC 'performance warning' Github pull 74 from Chris Desjardins --- src/lib/mac/cmac/cmac.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/mac/cmac') 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 CMAC::poly_double(const secure_vector& in) { - const bool top_carry = static_cast(in[0] & 0x80); + const bool top_carry = static_cast((in[0] & 0x80) != 0); secure_vector out = in; -- cgit v1.2.3