aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler/objcopy.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-12-11 23:41:57 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-12-23 22:15:09 -0800
commit1ed845e1f6fabdde8795513de2d06bc9b573779c (patch)
treec2776003424d1bc483312b0f1c3202d6c5edf8d9 /lib/compiler/objcopy.zig
parent16f8af1b9a7a287ac6fdefec5949725c55cbe179 (diff)
downloadzig-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.zig3
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" {