Fix a compilation error with older versions of GCC
This commit is contained in:
parent
9dfedafe98
commit
bef65dac57
@ -950,13 +950,14 @@ LiftedCircuit::createSmoothNode (
|
||||
vector<LogVarTypes>
|
||||
LiftedCircuit::getAllPossibleTypes (unsigned nrLogVars) const
|
||||
{
|
||||
vector<LogVarTypes> res;
|
||||
if (nrLogVars == 0) {
|
||||
return {};
|
||||
// do nothing
|
||||
}
|
||||
if (nrLogVars == 1) {
|
||||
return {{LogVarType::POS_LV},{LogVarType::NEG_LV}};
|
||||
}
|
||||
vector<LogVarTypes> res;
|
||||
res.push_back ({ LogVarType::POS_LV });
|
||||
res.push_back ({ LogVarType::NEG_LV });
|
||||
} else {
|
||||
Ranges ranges (nrLogVars, 2);
|
||||
Indexer indexer (ranges);
|
||||
while (indexer.valid()) {
|
||||
@ -971,6 +972,7 @@ LiftedCircuit::getAllPossibleTypes (unsigned nrLogVars) const
|
||||
res.push_back (types);
|
||||
++ indexer;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user