Skip to content

Commit 008bbbc

Browse files
committed
src: use const parameters in base64_decode_slow()
Make parameters as const since it's both better at its own and consistent with base64_decode_fast() and base64_decode().
1 parent a10e657 commit 008bbbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/base64.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ extern const int8_t unbase64_table[256];
5252

5353

5454
template <typename TypeName>
55-
size_t base64_decode_slow(char* dst, size_t dstlen,
56-
const TypeName* src, size_t srclen) {
55+
size_t base64_decode_slow(char* const dst, const size_t dstlen,
56+
const TypeName* const src, const size_t srclen) {
5757
uint8_t hi;
5858
uint8_t lo;
5959
size_t i = 0;

0 commit comments

Comments
 (0)