Skip to content

Commit

Permalink
fix(deps): Fix a (false positive) type conversion warning in base64.c
Browse files Browse the repository at this point in the history
  • Loading branch information
jpfr committed Aug 8, 2024
1 parent 253fcab commit 07f5f40
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deps/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ UA_unbase64(const unsigned char *src, size_t len, size_t *out_len) {
block[count] = tmp;
count++;
if(count == 4) {
*pos++ = (block[0] << 2) | (block[1] >> 4);
*pos++ = (block[1] << 4) | (block[2] >> 2);
*pos++ = (block[2] << 6) | block[3];
*pos++ = (unsigned char)((block[0] << 2) | (block[1] >> 4));
*pos++ = (unsigned char)((block[1] << 4) | (block[2] >> 2));
*pos++ = (unsigned char)((block[2] << 6) | block[3]);
if(pad) {
if(pad == 1)
pos--;
Expand Down

0 comments on commit 07f5f40

Please sign in to comment.