We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6219c01 commit 3d25a9cCopy full SHA for 3d25a9c
lib/std/Io/Writer.zig
@@ -2634,7 +2634,7 @@ pub const Allocating = struct {
2634
const gpa = a.allocator;
2635
var list = a.toArrayList();
2636
defer setArrayList(a, list);
2637
- const pos = file_reader.pos;
+ const pos = file_reader.logicalPos();
2638
const additional = if (file_reader.getSize()) |size| size - pos else |_| std.atomic.cache_line;
2639
if (additional == 0) return error.EndOfStream;
2640
list.ensureUnusedCapacity(gpa, limit.minInt64(additional)) catch return error.WriteFailed;
0 commit comments