diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2025-12-11 23:41:57 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-12-23 22:15:09 -0800 |
| commit | 1ed845e1f6fabdde8795513de2d06bc9b573779c (patch) | |
| tree | c2776003424d1bc483312b0f1c3202d6c5edf8d9 /lib/compiler/objcopy.zig | |
| parent | 16f8af1b9a7a287ac6fdefec5949725c55cbe179 (diff) | |
| download | zig-1ed845e1f6fabdde8795513de2d06bc9b573779c.tar.gz zig-1ed845e1f6fabdde8795513de2d06bc9b573779c.zip | |
update occurences of setEndPos to setLength
Diffstat (limited to 'lib/compiler/objcopy.zig')
| -rw-r--r-- | lib/compiler/objcopy.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compiler/objcopy.zig b/lib/compiler/objcopy.zig index d9b9b33186..90fd122294 100644 --- a/lib/compiler/objcopy.zig +++ b/lib/compiler/objcopy.zig @@ -676,8 +676,9 @@ fn containsValidAddressRange(segments: []*BinaryElfSegment) bool { } fn padFile(out: *File.Writer, opt_size: ?u64) !void { + const io = out.io; const size = opt_size orelse return; - try out.file.setEndPos(size); + try out.file.setLength(io, size); } test "HexWriter.Record.Address has correct payload and checksum" { |
