We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 31a06e8 + 52ba6c9 commit 205ec36Copy full SHA for 205ec36
src/solvers/bdd/bdd_cudd.h
@@ -17,6 +17,8 @@ Author: Romain Brenguier, [email protected]
17
18
#include <cplusplus/cuddObj.hh>
19
20
+#include <util/narrow.h>
21
+
22
class bdd_managert;
23
class bddt;
24
class bdd_nodet;
@@ -36,7 +38,7 @@ class bdd_nodet
36
38
}
37
39
40
/// Type of indexes of Boolean variables
- using indext = int;
41
+ using indext = unsigned int;
42
43
/// Label on the node, corresponds to the index of a Boolean variable
44
indext index() const
@@ -152,7 +154,7 @@ class bdd_managert
152
154
153
155
bddt bdd_variable(bdd_nodet::indext index)
156
{
- return bddt(cudd.bddVar(index));
157
+ return bddt(cudd.bddVar(narrow_cast<int>(index)));
158
159
160
bdd_nodet bdd_node(const bddt &bdd) const
0 commit comments