From 67336ca8c64a4c6d9f7304b6319776c64044660a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Anic=CC=81?= Date: Sat, 2 Mar 2024 23:29:02 +0100 Subject: [PATCH] std.tar: fix build on 32 bit platform Fixing error from ci: std/tar.zig:423:54: error: expected type 'usize', found 'u64' std/tar.zig:423:54: note: unsigned 32-bit int cannot represent all possible unsigned 64-bit values --- lib/std/tar.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/tar.zig b/lib/std/tar.zig index 8a4ec444af..a6ec42d415 100644 --- a/lib/std/tar.zig +++ b/lib/std/tar.zig @@ -306,7 +306,7 @@ fn Iterator(comptime ReaderType: type) type { // bytes of padding to the end of the block padding: usize, // not consumed bytes of file from last next iteration - unread_file_bytes: usize = 0, + unread_file_bytes: u64 = 0, pub const File = struct { name: []const u8, // name of file, symlink or directory @@ -315,7 +315,7 @@ fn Iterator(comptime ReaderType: type) type { mode: u32 = 0, kind: FileKind = .file, - unread_bytes: *usize, + unread_bytes: *u64, reader: ReaderType, pub const Reader = std.io.Reader(*Self, ReaderType.Error, read);