mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Compilation: fix incorrect saved buf count
Change-Id: Ib2a2ffcb6224e571fed1151e687d8a8efe0bb95b
This commit is contained in:
parent
a38220376e
commit
22e55f78f0
1 changed files with 1 additions and 1 deletions
|
|
@ -3693,7 +3693,7 @@ pub fn saveState(comp: *Compilation) !void {
|
|||
},
|
||||
});
|
||||
|
||||
try bufs.ensureTotalCapacityPrecise(14 + 8 * pt_headers.items.len);
|
||||
try bufs.ensureTotalCapacityPrecise(22 + 9 * pt_headers.items.len);
|
||||
addBuf(&bufs, mem.asBytes(&header));
|
||||
addBuf(&bufs, @ptrCast(pt_headers.items));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue