zig

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

commit 92ea7bce5dc31f0abbf9dcfcb9b0b749e604bba9 (tree)
parent d94613c1d06fbeaf0cee88a04842cda64a10c8f9
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 24 Jan 2023 15:23:34 -0700

std.compress.xz: fix compile error on 32-bit systems

Diffstat:
Mlib/std/compress/xz/block.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/compress/xz/block.zig b/lib/std/compress/xz/block.zig @@ -268,7 +268,7 @@ pub fn Decoder(comptime ReaderType: type) type { }; const packed_size = blk: { - var tmp: u64 = try packed_reader.readIntBig(u16); + const tmp: u17 = try packed_reader.readIntBig(u16); break :blk tmp + 1; };