From 7228dc0ef98633876344c00fbadcef319dd11257 Mon Sep 17 00:00:00 2001 From: Sertonix Date: Fri, 24 Apr 2026 21:20:50 +0200 Subject: [PATCH] langref: fix compilation if usize is u32 --- doc/langref/test_peer_type_resolution.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/langref/test_peer_type_resolution.zig b/doc/langref/test_peer_type_resolution.zig index de498fc5c80144e4257a3b6ff4dc35a08c0bedb3..f55ae25bcf76e46506d71672ab25b2a46e5bc971 100644 --- a/doc/langref/test_peer_type_resolution.zig +++ b/doc/langref/test_peer_type_resolution.zig @@ -96,8 +96,8 @@ fn peerTypeEmptyArrayAndSliceAndError(a: bool, slice: []u8) anyerror![]u8 { } test "peer type resolution: *const T and ?*T" { - const a: *const usize = @ptrFromInt(0x123456780); - const b: ?*usize = @ptrFromInt(0x123456780); + const a: *const usize = @ptrFromInt(0x12345678); + const b: ?*usize = @ptrFromInt(0x12345678); try expectEqual(a, b); try expectEqual(b, a); } -- 2.54.0