test: fix ReadTopologicalSet unsigned integer overflow
This commit is contained in:
1 file changed
+1
-1
@@ -304,7 +304,7 @@ SetType ReadTopologicalSet(const DepGraph<SetType>& depgraph, const SetType& tod
|
|||||||
try {
|
try {
|
||||||
reader >> VARINT(mask);
|
reader >> VARINT(mask);
|
||||||
} catch(const std::ios_base::failure&) {}
|
} catch(const std::ios_base::failure&) {}
|
||||||
mask += non_empty;
|
if (mask != uint64_t(-1)) mask += non_empty;
|
||||||
|
|
||||||
SetType ret;
|
SetType ret;
|
||||||
for (auto i : todo) {
|
for (auto i : todo) {
|
||||||
|
|||||||
Reference in new issue
Block a user