Skip to content

Commit

Permalink
Change base64_map from signed to unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
junjihashimoto committed Feb 27, 2024
1 parent 495c236 commit 1d037fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ string util::base64_encode(const char* src, size_t src_size) {
}

char* util::base64_decode(string src, size_t& dst_size) {
static const char base64_map[] = {
static const signed char base64_map[] = {
-2, -2, -2, -2, -2, -2, -2, -2, -2, -1, -1, -2, -2, -1, -2, -2,
-2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2,
-1, -2, -2, -2, -2, -2, -2, -2, -2, -2, -2, 62, -2, -2, -2, 63,
Expand Down

0 comments on commit 1d037fb

Please sign in to comment.