mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 18:32:12 +00:00
Fix minor possible issue
This commit is contained in:
@@ -3092,7 +3092,7 @@ void calculate_global_init_order(Checker *c) {
|
||||
|
||||
for_array(i, n->pred.entries) {
|
||||
EntityGraphNode *p = n->pred.entries[i].ptr;
|
||||
p->dep_count -= 1;
|
||||
p->dep_count -= gb_max(p->dep_count-1, 0);
|
||||
priority_queue_fix(&pq, p->index);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user