Skip to content

Commit

Permalink
src: use const parameters in base64_decode_slow()
Browse files Browse the repository at this point in the history
Make parameters as const since it's both better at its own and
consistent with base64_decode_fast() and base64_decode().
  • Loading branch information
aqrln committed Mar 31, 2017
1 parent a10e657 commit 008bbbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base64.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ extern const int8_t unbase64_table[256];


template <typename TypeName>
size_t base64_decode_slow(char* dst, size_t dstlen,
const TypeName* src, size_t srclen) {
size_t base64_decode_slow(char* const dst, const size_t dstlen,
const TypeName* const src, const size_t srclen) {
uint8_t hi;
uint8_t lo;
size_t i = 0;
Expand Down

0 comments on commit 008bbbc

Please sign in to comment.