Skip to content

Commit 629c548

Browse files
Fix type of bddVar argument
The function bdd_variable takes a size_t while cudd.bddVar takes an int, we need a conversion between the two.
1 parent 0b58dc5 commit 629c548

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/arith_tools.h>
21+
2022
class bdd_managert;
2123
class bddt;
2224
class bdd_nodet;
@@ -149,7 +151,7 @@ class bdd_managert
149151

150152
bddt bdd_variable(std::size_t index)
151153
{
152-
return bddt(cudd.bddVar(index));
154+
return bddt(cudd.bddVar(numeric_cast_v<int>(index)));
153155
}
154156

155157
bdd_nodet bdd_node(const bddt &bdd) const

0 commit comments

Comments
 (0)