Resolve gcc-4.3 warning in lemon/network_simplex.h
authorAlpar Juttner <alpar@cs.elte.hu>
Wed, 29 Apr 2009 17:48:18 +0100
changeset 643f3792d5bb294
parent 642 111698359429
child 644 8d289c89d43e
Resolve gcc-4.3 warning in lemon/network_simplex.h
lemon/network_simplex.h
     1.1 --- a/lemon/network_simplex.h	Wed Apr 29 16:54:27 2009 +0200
     1.2 +++ b/lemon/network_simplex.h	Wed Apr 29 17:48:18 2009 +0100
     1.3 @@ -1045,8 +1045,8 @@
     1.4        for (int i = 0; i != _node_num; ++i) {
     1.5          _sum_supply += _supply[i];
     1.6        }
     1.7 -      if ( !(_stype == GEQ && _sum_supply <= 0 ||
     1.8 -             _stype == LEQ && _sum_supply >= 0) ) return false;
     1.9 +      if ( !((_stype == GEQ && _sum_supply <= 0) ||
    1.10 +             (_stype == LEQ && _sum_supply >= 0)) ) return false;
    1.11  
    1.12        // Remove non-zero lower bounds
    1.13        if (_have_lower) {