From 180540de74c58a72492692f58b63f32647e80bd8 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Tue, 3 Oct 2017 00:37:43 -0400 Subject: Remove redundant parens Sonar --- src/lib/codec/base64/base64.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/codec/base64/base64.cpp') diff --git a/src/lib/codec/base64/base64.cpp b/src/lib/codec/base64/base64.cpp index 88bbcff3a..7f52fb5af 100644 --- a/src/lib/codec/base64/base64.cpp +++ b/src/lib/codec/base64/base64.cpp @@ -24,10 +24,10 @@ static const uint8_t BIN_TO_BASE64[64] = { void do_base64_encode(char out[4], const uint8_t in[3]) { - out[0] = BIN_TO_BASE64[((in[0] & 0xFC) >> 2)]; + out[0] = BIN_TO_BASE64[(in[0] & 0xFC) >> 2]; out[1] = BIN_TO_BASE64[((in[0] & 0x03) << 4) | (in[1] >> 4)]; out[2] = BIN_TO_BASE64[((in[1] & 0x0F) << 2) | (in[2] >> 6)]; - out[3] = BIN_TO_BASE64[((in[2] & 0x3F) )]; + out[3] = BIN_TO_BASE64[in[2] & 0x3F]; } } -- cgit v1.2.3