From 39cad8402d19f361cb8d489a3a69ff94b643c6df Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Wed, 19 Nov 2025 16:51:54 +0200 Subject: [PATCH] max_align_t: apply alignof to 'long double' for long double alignment Reviewed by; markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D53826 --- sys/sys/_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/_types.h b/sys/sys/_types.h index fe345b43d5e..6b70b8dc6e3 100644 --- a/sys/sys/_types.h +++ b/sys/sys/_types.h @@ -183,7 +183,7 @@ typedef struct { __attribute__((__aligned__(__alignof__(long long)))); #ifndef _STANDALONE long double __max_align2 - __attribute__((__aligned__(__alignof__(long long)))); + __attribute__((__aligned__(__alignof__(long double)))); #endif } __max_align_t;