diff options
Diffstat (limited to 'src/lib/mac/cmac/cmac.cpp')
-rw-r--r-- | src/lib/mac/cmac/cmac.cpp | 2 |
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; |