test: fix ReadTopologicalSet unsigned integer overflow

This commit is contained in:
ismaelsadeeq
2025-07-18 14:47:30 +01:00
parent 9f713b83dc
commit 31c4e77a25

View File

@@ -304,7 +304,7 @@ SetType ReadTopologicalSet(const DepGraph<SetType>& depgraph, const SetType& tod
try {
reader >> VARINT(mask);
} catch(const std::ios_base::failure&) {}
mask += non_empty;
if (mask != uint64_t(-1)) mask += non_empty;
SetType ret;
for (auto i : todo) {