aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/codec/base64/base64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/codec/base64/base64.cpp')
-rw-r--r--src/lib/codec/base64/base64.cpp4
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];
}
}