Skip to content

Commit 0cf0972

Browse files
committed
Ensure intended operator precedence
G++-5 warned: "suggest parentheses around operand of ‘!’ or change ‘&’ to ‘&&’ or ‘!’ to ‘~’"
1 parent e6c8160 commit 0cf0972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/miniBDD/miniBDD.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ BDD substitute(const BDD &t, unsigned var, const BDD &tp)
408408
// (!tp & t[var/0])
409409

410410
return ( tp & restrict(t, var, true)) |
411-
(!tp & restrict(t, var, false));
411+
((!tp) & restrict(t, var, false));
412412
}
413413

414414
void cubes(const BDD &u, const std::string &path, std::string &result)

0 commit comments

Comments
 (0)