From d1e76ee276ea6122498d0dca50940424e3d7ce9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 16 Oct 2026 21:36:10 +0200 Subject: [PATCH] std.c: fix max_align_t for 32-bit x86 Compiler headers use __alignof__ on this field which is 8 rather than 4. --- lib/std/c.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/c.zig b/lib/std/c.zig index 69c29af84368b22df157932076f46198545e88f9..3f2fde449d5bc513c1786b2f5327ed0040b381d6 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -11496,7 +11496,7 @@ else if (native_os.isDarwin()) c_longdouble else extern struct { - a: c_longlong, + a: c_longlong align(if (native_arch == .x86) 8 else @alignOf(c_longlong)), b: c_longdouble, }; -- 2.54.0