zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 2db3c770608a4318269fc5a3b61bd50e6c6f6a3f (tree)
parent 4ceefca14be313e91a248fdc532e37edf4a02a51
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu, 26 Sep 2024 17:04:36 +0200

std.io.Reader: Fix test erroneously using undefined.

Diffstat:
Mlib/std/io/Reader/test.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/std/io/Reader/test.zig b/lib/std/io/Reader/test.zig @@ -1,3 +1,4 @@ +const builtin = @import("builtin"); const std = @import("../../std.zig"); const testing = std.testing; @@ -11,7 +12,7 @@ test "Reader" { b = 99, c = 2, d = 3, - }, undefined)) == .c); + }, builtin.cpu.arch.endian())) == .c); try testing.expectError(error.EndOfStream, reader.readByte()); }