diff options
author | Jack Lloyd <[email protected]> | 2017-10-03 00:37:43 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-03 00:37:43 -0400 |
commit | 180540de74c58a72492692f58b63f32647e80bd8 (patch) | |
tree | 9009e260b21d1e3b0b739f58ca831b7395136327 /src/lib/codec/base64/base64.cpp | |
parent | e4eaf414973f65c4e36a34a7b19f1cc20fe93f8a (diff) |
Remove redundant parens
Sonar
Diffstat (limited to 'src/lib/codec/base64/base64.cpp')
-rw-r--r-- | src/lib/codec/base64/base64.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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]; } } |