Skip to content

Commit 52ba6c9

Browse files
Correct argument type of cudd.bddVar
The type of cudd.bddVar differs from cuddNodeReadIndex, so we need a conversion between the two.
1 parent 871c551 commit 52ba6c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/solvers/bdd/bdd_cudd.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Author: Romain Brenguier, [email protected]
1717

1818
#include <cplusplus/cuddObj.hh>
1919

20+
#include <util/narrow.h>
21+
2022
class bdd_managert;
2123
class bddt;
2224
class bdd_nodet;
@@ -152,7 +154,7 @@ class bdd_managert
152154

153155
bddt bdd_variable(bdd_nodet::indext index)
154156
{
155-
return bddt(cudd.bddVar(index));
157+
return bddt(cudd.bddVar(narrow_cast<int>(index)));
156158
}
157159

158160
bdd_nodet bdd_node(const bddt &bdd) const

0 commit comments

Comments
 (0)