authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-16 21:36:10+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-17 04:29:44+02:00
logdaf46381a684407cf57685264354d07eeeef99a3
treec9db9100951a7bb869c8226033e707a5f9e47e45
parent1ab08d09cb123352ebc33e3510196ce95c9b7aa4
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.c: fix max_align_t for 32-bit x86

Compiler headers use __alignof__ on this field which is 8 rather than 4.

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/c.zig+1-1
...@@ -11294,7 +11294,7 @@ else if (native_os.isDarwin())...@@ -11294,7 +11294,7 @@ else if (native_os.isDarwin())
11294 c_longdouble11294 c_longdouble
11295else11295else
11296 extern struct {11296 extern struct {
11297 a: c_longlong,11297 a: c_longlong align(if (native_arch == .x86) 8 else @alignOf(c_longlong)),
11298 b: c_longdouble,11298 b: c_longdouble,
11299 };11299 };
1130011300