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 05:22:29+02:00
logd1e76ee276ea6122498d0dca50940424e3d7ce9f
tree1512f6b777ad52d5ae3dd997d6dd0e54d47fff65
parent5aef08aa09ffbb7c1ea4dff7d5f15dc147ec2ecb
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
...@@ -11496,7 +11496,7 @@ else if (native_os.isDarwin())...@@ -11496,7 +11496,7 @@ else if (native_os.isDarwin())
11496 c_longdouble11496 c_longdouble
11497else11497else
11498 extern struct {11498 extern struct {
11499 a: c_longlong,11499 a: c_longlong align(if (native_arch == .x86) 8 else @alignOf(c_longlong)),
11500 b: c_longdouble,11500 b: c_longdouble,
11501 };11501 };
1150211502