| ... | ... | @@ -2634,7 +2634,7 @@ pub const Allocating = struct { |
| 2634 | 2634 | const gpa = a.allocator; |
| 2635 | 2635 | var list = a.toArrayList(); |
| 2636 | 2636 | defer setArrayList(a, list); |
| 2637 | | const pos = file_reader.pos; |
| 2637 | const pos = file_reader.logicalPos(); |
| 2638 | 2638 | const additional = if (file_reader.getSize()) |size| size - pos else |_| std.atomic.cache_line; |
| 2639 | 2639 | if (additional == 0) return error.EndOfStream; |
| 2640 | 2640 | list.ensureUnusedCapacity(gpa, limit.minInt64(additional)) catch return error.WriteFailed; |