[Lemon-commits] Alpar Juttner: Bypass warnings with gcc 4.3

Lemon HG hg at lemon.cs.elte.hu
Mon Jan 12 13:44:45 CET 2009


details:   http://lemon.cs.elte.hu/hg/lemon/rev/76ec7bd57026
changeset: 483:76ec7bd57026
user:      Alpar Juttner <alpar [at] cs.elte.hu>
date:      Mon Jan 12 12:25:55 2009 +0000
description:
	Bypass warnings with gcc 4.3

diffstat:

1 file changed, 5 insertions(+), 5 deletions(-)
test/lp_test.cc |   10 +++++-----

diffs (28 lines):

diff --git a/test/lp_test.cc b/test/lp_test.cc
--- a/test/lp_test.cc
+++ b/test/lp_test.cc
@@ -162,11 +162,11 @@
     c = (2.2== p2 );
     c = (2  == p2 );
 
-    c = (2 <= e <= 3);
-    c = (2 <= p1<= 3);
+    c = ((2 <= e) <= 3);
+    c = ((2 <= p1) <= 3);
 
-    c = (2 >= e >= 3);
-    c = (2 >= p1>= 3);
+    c = ((2 >= e) >= 3);
+    c = ((2 >= p1) >= 3);
 
     e[x[3]]=2;
     e[x[3]]=4;
@@ -178,7 +178,7 @@
     lp.addRow(-LP::INF,3.0*(x[1]+x[2]*2-5*x[3]+12-x[4]/3)+2*x[4]-4,23);
 
     lp.addRow(x[1]+x[3]<=x[5]-3);
-    lp.addRow(-7<=x[1]+x[3]-12<=3);
+    lp.addRow((-7<=x[1]+x[3]-12)<=3);
     lp.addRow(x[1]<=x[5]);
 
     std::ostringstream buf;



More information about the Lemon-commits mailing list