[Lemon-commits] Alpar Juttner: Resolve gcc-4.3 warning in lemon/...

Lemon HG hg at lemon.cs.elte.hu
Wed Apr 29 18:54:41 CEST 2009


details:   http://lemon.cs.elte.hu/hg/lemon/rev/f3792d5bb294
changeset: 682:f3792d5bb294
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Wed Apr 29 17:48:18 2009 +0100
description:
	Resolve gcc-4.3 warning in lemon/network_simplex.h

diffstat:

 lemon/network_simplex.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff --git a/lemon/network_simplex.h b/lemon/network_simplex.h
--- a/lemon/network_simplex.h
+++ b/lemon/network_simplex.h
@@ -1045,8 +1045,8 @@
       for (int i = 0; i != _node_num; ++i) {
         _sum_supply += _supply[i];
       }
-      if ( !(_stype == GEQ && _sum_supply <= 0 ||
-             _stype == LEQ && _sum_supply >= 0) ) return false;
+      if ( !((_stype == GEQ && _sum_supply <= 0) ||
+             (_stype == LEQ && _sum_supply >= 0)) ) return false;
 
       // Remove non-zero lower bounds
       if (_have_lower) {



More information about the Lemon-commits mailing list