From d579a1cc9322e67edd360e1a1dbd573f6d0320fc Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 22 Mar 2025 00:37:43 +0800 Subject: check pending count --- xmake/core/base/graph.lua | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.3.1