Skip to content

Commit f72f1e7

Browse files
authored
Merge pull request #1891 from nicolasnoble/psyq-obj-parser-ordering
Stabilizing the order of symbols and sections + various other fixes.
2 parents 689a296 + f3bc00d commit f72f1e7

File tree

2 files changed

+86
-48
lines changed

2 files changed

+86
-48
lines changed

src/support/list.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ class List final {
147147
bool empty() const { return m_count == 0; }
148148
void clear() {
149149
for (Node* ptr = m_head.m_next; ptr; ptr = ptr->m_next) ptr->m_parent = nullptr;
150-
m_head.m_next = m_tail.m_prev = nullptr;
150+
m_head.m_prev = m_tail.m_next = nullptr;
151+
m_head.m_next = &m_tail;
152+
m_tail.m_prev = &m_head;
151153
m_count = 0;
152154
}
153155
iterator insert(iterator i, Node* node) {

0 commit comments

Comments
 (0)