mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
Compilation: fix incorrect saved buf count
Change-Id: Ib2a2ffcb6224e571fed1151e687d8a8efe0bb95b
This commit is contained in:
+1
-1
@@ -3755,7 +3755,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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user