authorgravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-08-15 08:59:07+01:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-08-16 10:37:20+01:00
log507f2d0ab154fabe3d81c80e74aa82a59fff837b
treee67ec6c8a81e27a80d5b1d4873cd66c01f35ddda
parent8a539f903b72f18ae57c4f1334ff37eabb4b4b1e
signaturelock-open Commit is signed but in an unrecognized format.

MappedFile: fix bug in growing fixed nodes


1 files changed, 3 insertions(+), 2 deletions(-)

src/link/MappedFile.zig+3-2
......@@ -1023,9 +1023,10 @@ fn resizeNode(
10231023 }
10241024 try mf.ensureCapacityForSetLocation(gpa);
10251025 if (parent.last != first_floating_ni) {
1026 first_floating.prev = parent.last;
1026 const old_last = parent.last;
1027 first_floating.prev = old_last;
10271028 parent.last = first_floating_ni;
1028 try parent.last.setNext(gpa, first_floating_ni, mf);
1029 try old_last.setNext(gpa, first_floating_ni, mf);
10291030 try last_fixed_ni.setNext(gpa, first_floating.next, mf);
10301031 switch (first_floating.next) {
10311032 .none => {},