diff options
| author | gingerBill <bill@gingerbill.org> | 2018-06-03 17:44:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-06-03 17:44:10 +0100 |
| commit | e0549df03e20a57a2d01583c2129c8a76246f542 (patch) | |
| tree | fdb1b8cdd4277b2c68378736bd9dfb8ca1457434 /src/checker.cpp | |
| parent | e46662a546788324f3648e7f9bfa051c86184db4 (diff) | |
Fix minor possible issue
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 224454c11..b1bf5e063 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -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); } |