diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-08 14:17:52 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:08 -0800 |
| commit | 9f4d40b1f9bffc4137055b8a07f042ecfa398124 (patch) | |
| tree | be2a20f7e4f0d09a955c654e6627d147836954da /lib/compiler/objcopy.zig | |
| parent | 264d714321d3e5f1f189af393e1fb24d101a7e91 (diff) | |
| download | zig-9f4d40b1f9bffc4137055b8a07f042ecfa398124.tar.gz zig-9f4d40b1f9bffc4137055b8a07f042ecfa398124.zip | |
update all stat() to stat(io)
Diffstat (limited to 'lib/compiler/objcopy.zig')
| -rw-r--r-- | lib/compiler/objcopy.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compiler/objcopy.zig b/lib/compiler/objcopy.zig index e48f76a6a6..6473a10dd0 100644 --- a/lib/compiler/objcopy.zig +++ b/lib/compiler/objcopy.zig @@ -155,7 +155,7 @@ fn cmdObjCopy(gpa: Allocator, arena: Allocator, args: []const []const u8) !void const input_file = Io.Dir.cwd().openFile(input, .{}) catch |err| fatal("failed to open {s}: {t}", .{ input, err }); defer input_file.close(io); - const stat = input_file.stat() catch |err| fatal("failed to stat {s}: {t}", .{ input, err }); + const stat = input_file.stat(io) catch |err| fatal("failed to stat {s}: {t}", .{ input, err }); var in: File.Reader = .initSize(input_file, io, &input_buffer, stat.size); |
