Fix iterator traversal order

This commit is contained in:
Krzosa Karol
2023-03-31 12:41:19 +02:00
parent 534db633ed
commit 1839279235
4 changed files with 76 additions and 54 deletions

View File

@@ -147,14 +147,12 @@ struct String_Builder {
U64 di;
void reset() {
for (;;) {
for (; first;) {
auto *block = first;
first = first->next;
block->next = first_free;
first_free = block;
if (!first) break;
}
last = 0;