mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-16 05:49:41 -07:00
sort global symbols deterministically within GSI bucket
This commit is contained in:
1 parent
1839187a3c
commit
0299b6922f
2 files changed
+6
-1
No files matched your search
@@ -1827,7 +1827,11 @@ gsi_symbol_is_before(void *raw_a, void *raw_b)
|
||||
if (a_name.size != b_name.size) {
|
||||
is_before = a_name.size < b_name.size;
|
||||
} else {
|
||||
is_before = str8_compar_ignore_case(&a_name, &b_name) < 0;
|
||||
int cmp = str8_compar_ignore_case(&a_name, &b_name);
|
||||
if (cmp == 0) {
|
||||
cmp = u64_compar(&a->offset, &b->offset);
|
||||
}
|
||||
is_before = cmp < 0;
|
||||
}
|
||||
|
||||
return is_before;
|
||||
|
||||
Reference in new issue
Block a user