]> granicus.if.org Git - graphviz/commitdiff
squash a -Wparentheses warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Apr 2021 01:54:18 +0000 (18:54 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 10 Apr 2021 21:53:50 +0000 (14:53 -0700)
lib/vpsc/block.cpp

index f7ceeba21c3cedd3fc026d0797c3bf9db9d048cd..bc8da3956b600b22259e3b34c3b03dcf1513e45a 100644 (file)
@@ -80,7 +80,7 @@ void Block::setUpConstraintHeap(PairingHeap<Constraint*>* &h,bool in) {
                for (vector<Constraint*>::iterator j=cs->begin();j!=cs->end();j++) {
                        Constraint *c=*j;
                        c->timeStamp=blockTimeCtr;
-                       if (c->left->block != this && in || c->right->block != this && !in) {
+                       if ((c->left->block != this && in) || (c->right->block != this && !in)) {
                                h->insert(c);
                        }
                }