Use automatic allocation for patches

This commit is contained in:
Rangi42
2024-02-28 18:49:33 -05:00
committed by Sylvie
parent fc5ab8a14c
commit 3c0af94c5c
5 changed files with 14 additions and 24 deletions

View File

@@ -153,7 +153,7 @@ static void mergeSections(struct Section *target, struct Section *other, enum Se
other->data = NULL; // Prevent a double `delete`
}
// Adjust patches' PC offsets
for (struct Patch &patch : *other->patches)
for (struct Patch &patch : other->patches)
patch.pcOffset += other->offset;
} else if (target->data) {
assert(other->size == 0);