authorgravatar for igor.anic@gmail.comIgor Anić <igor.anic@gmail.com> 2024-03-02 23:29:02+01:00
committergravatar for igor.anic@gmail.comIgor Anić <igor.anic@gmail.com> 2024-03-11 12:24:11+01:00
log67336ca8c64a4c6d9f7304b6319776c64044660a
treedbc6b38fe8e84a0a26ec688fa90f53bb24521594
parentf5fd4691e5595e895e935ed76342cb729dc6904a

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

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

lib/std/tar.zig+2-2
...@@ -306,7 +306,7 @@ fn Iterator(comptime ReaderType: type) type {...@@ -306,7 +306,7 @@ fn Iterator(comptime ReaderType: type) type {
306 // bytes of padding to the end of the block306 // bytes of padding to the end of the block
307 padding: usize,307 padding: usize,
308 // not consumed bytes of file from last next iteration308 // not consumed bytes of file from last next iteration
309 unread_file_bytes: usize = 0,309 unread_file_bytes: u64 = 0,
310310
311 pub const File = struct {311 pub const File = struct {
312 name: []const u8, // name of file, symlink or directory312 name: []const u8, // name of file, symlink or directory
...@@ -315,7 +315,7 @@ fn Iterator(comptime ReaderType: type) type {...@@ -315,7 +315,7 @@ fn Iterator(comptime ReaderType: type) type {
315 mode: u32 = 0,315 mode: u32 = 0,
316 kind: FileKind = .file,316 kind: FileKind = .file,
317317
318 unread_bytes: *usize,318 unread_bytes: *u64,
319 reader: ReaderType,319 reader: ReaderType,
320320
321 pub const Reader = std.io.Reader(*Self, ReaderType.Error, read);321 pub const Reader = std.io.Reader(*Self, ReaderType.Error, read);