Skip to content

Commit

Permalink
Fix aarch64 base64 decoding on little endian machines
Browse files Browse the repository at this point in the history
Fixes #2451 and #2419
  • Loading branch information
CamJN committed Aug 22, 2023
1 parent 55ce347 commit 455a793
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -89,7 +89,7 @@ size_t modp_b64_decode(char* dest, const char* src, size_t len)
case 0:
x = d0[y[3]] | d1[y[2]] | d2[y[1]] | d3[y[0]];
if (x >= B64_BADCHAR) return -1;
#ifdef BOOST_ENDIAN_BIG_BYTE
#if BOOST_ENDIAN_BIG_BYTE
*p++ = ((modp_uint8_t*)&x)[1];
*p++ = ((modp_uint8_t*)&x)[2];
*p = ((modp_uint8_t*)&x)[3];
Expand Down

0 comments on commit 455a793

Please sign in to comment.