≈ the.bay.news

Different struct @alignOf result from 0.16 to 0.17

Ziggit
Different struct @alignOf result from 0.16 to 0.17
This test passes with 0.16 but fails with 0.17. test { const S = struct { a: [*]const u8 }; try testing.expectEqual(8, @sizeOf(S)); try testing.expectEqual(8, @alignOf(S)); // fails here with 0.17 } const std = @import("std"); const testing = std.testing; $ zig version 0.17.0 $ zig test /tmp/tmp.zig expected 8, found 4 ... Anyone know where we can learn about this @alignOf change? I’ve read throught the 0.17 release notes and searched them for ‘align’ but none of the 12 occurren...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.