summaryrefslogtreecommitdiff
path: root/xmake/core/base/graph.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-03-22 00:37:43 +0800
committerruki <[email protected]>2025-04-08 15:31:54 +0800
commitd579a1cc9322e67edd360e1a1dbd573f6d0320fc (patch)
tree2523761de68614107f82df8eb8210b15caadd561 /xmake/core/base/graph.lua
parentf1a16a647593691302154af0ff592a9cdf9cda5e (diff)
check pending count
Diffstat (limited to 'xmake/core/base/graph.lua')
-rw-r--r--xmake/core/base/graph.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/core/base/graph.lua b/xmake/core/base/graph.lua
index 04b0c6573..63d339dec 100644
--- a/xmake/core/base/graph.lua
+++ b/xmake/core/base/graph.lua
@@ -190,6 +190,7 @@ function graph:partial_topo_sort_remove(node)
if node == nil then
return
end
+ assert(self._partial_topo_pending > 0)
self._partial_topo_pending = self._partial_topo_pending - 1
local edges = self:adjacent_edges(node)
if edges then