From ac1281f01f9c7b05ceacbde8f3fb9d56c859f2bf Mon Sep 17 00:00:00 2001 From: Egor Date: Tue, 21 Jan 2025 09:36:44 +0200 Subject: [PATCH] crypt_blowfish.c: clang++ compat in BF_swap --- src/crypt_blowfish.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.56.0