* examples/adder/adder.cxx (test_vector): Add parentheses to

remove a clang++-2.9 warning.
This commit is contained in:
Alexandre Duret-Lutz 2011-08-28 10:13:36 +02:00
parent 24be6076f6
commit 92ef9d6e07
2 changed files with 8 additions and 2 deletions

View file

@ -35,7 +35,7 @@ void build_adder(void)
xout[n] = ainp[n] ^ binp[n] ^ co[n-1];
co[n] = ainp[n] & binp[n] |
ainp[n] & co[n-1] |
binp[n] & co[n-1];
binp[n] & co[n-1];
}
else
{
@ -181,7 +181,8 @@ int test_vector(bdd av, bdd bv, int a, int b)
{
bdd resv = av & bv & xout[n];
if (resv == bddfalse && (res & 1) || resv != bddfalse && !(res & 1))
if ((resv == bddfalse && (res & 1))
|| (resv != bddfalse && !(res & 1)))
return 0;
res = res >> 1;