From db46e06f2e56e660cad77a01c0b6faf3e14f9dd8 Mon Sep 17 00:00:00 2001 From: Carter Li Date: Mon, 20 Jul 2026 15:36:57 +0800 Subject: [PATCH] Common (Base64): unifies the code of endian testing --- src/common/impl/base64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/impl/base64.c b/src/common/impl/base64.c index 3f5ddf139..fa987c303 100644 --- a/src/common/impl/base64.c +++ b/src/common/impl/base64.c @@ -7,7 +7,7 @@ void ffBase64EncodeRaw(uint32_t size, const char* str, uint32_t* out_size, char* const char* ends = str + (size - size % 3); while (str != ends) { uint32_t n = *(uint32_t*) str; - #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ + #if !__BIG_ENDIAN__ // The 3 input bytes must be laid out big-endian (str[0] in the most // significant position). On little-endian hosts swap; on big-endian // hosts the word is already in the right order.