From: Egor Date: Tue, 21 Jan 2025 07:36:44 +0000 (+0200) Subject: crypt_blowfish.c: clang++ compat in BF_swap X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=ac1281f01f9c7b05ceacbde8f3fb9d56c859f2bf;p=patchyircd.git crypt_blowfish.c: clang++ compat in BF_swap --- diff --git a/src/crypt_blowfish.c b/src/crypt_blowfish.c index db7d2be..e4b4602 100644 --- a/src/crypt_blowfish.c +++ b/src/crypt_blowfish.c @@ -431,7 +431,8 @@ static void BF_encode(char *dst, const BF_word *src, int size) static void BF_swap(BF_word *x, int count) { - if ((union { int i; char c; }){1}.c) + union { int i; char c; } u = {1}; + if (u.c) do { BF_word tmp = *x; tmp = (tmp << 16) | (tmp >> 16);