authorgravatar for sertonix@posteo.netSertonix <sertonix@posteo.net> 2026-04-24 21:20:50+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2026-05-26 09:43:40-07:00
log7228dc0ef98633876344c00fbadcef319dd11257
tree9fb51852c5651272736117c59277aaf7bb957420
parent8455563ed86ddb1fc3157e1bf74dc77c1e6aa6bb

langref: fix compilation if usize is u32


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

doc/langref/test_peer_type_resolution.zig+2-2
......@@ -96,8 +96,8 @@ fn peerTypeEmptyArrayAndSliceAndError(a: bool, slice: []u8) anyerror![]u8 {
9696}
9797
9898test "peer type resolution: *const T and ?*T" {
99 const a: *const usize = @ptrFromInt(0x123456780);
100 const b: ?*usize = @ptrFromInt(0x123456780);
99 const a: *const usize = @ptrFromInt(0x12345678);
100 const b: ?*usize = @ptrFromInt(0x12345678);
101101 try expectEqual(a, b);
102102 try expectEqual(b, a);
103103}