From daf46381a684407cf57685264354d07eeeef99a3 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 e4d123965d586f5fff53e680246a5f310ff33456..6969f4df8a4b1f3be8daf11923312c2f9a7c8a52 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -11294,7 +11294,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