mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 15:27:06 -04:00
Serialize errors to make them sortable, deterministic, and generally more control
This commit is contained in:
1 parent
8ff788f4ff
commit
9a2fc6cf4c
12 files changed
+159
-94
No files matched your search
+1
-1
@@ -6485,7 +6485,7 @@ gb_internal CallArgumentData check_call_arguments_proc_group(CheckerContext *c,
|
||||
}
|
||||
|
||||
if (valids.count > 1) {
|
||||
gb_sort_array(valids.data, valids.count, valid_index_and_score_cmp);
|
||||
array_sort(valids, valid_index_and_score_cmp);
|
||||
i64 best_score = valids[0].score;
|
||||
Entity *best_entity = proc_entities[valids[0].index];
|
||||
GB_ASSERT(best_entity != nullptr);
|
||||
|
||||
Reference in new issue
Block a user