Bypass warnings with gcc 4.3
authorAlpar Juttner <alpar@cs.elte.hu>
Mon, 12 Jan 2009 12:25:55 +0000
changeset 46076ec7bd57026
parent 459 ed54c0d13df0
child 461 08d495d48089
Bypass warnings with gcc 4.3
test/lp_test.cc
     1.1 --- a/test/lp_test.cc	Tue Dec 02 22:48:28 2008 +0100
     1.2 +++ b/test/lp_test.cc	Mon Jan 12 12:25:55 2009 +0000
     1.3 @@ -162,11 +162,11 @@
     1.4      c = (2.2== p2 );
     1.5      c = (2  == p2 );
     1.6  
     1.7 -    c = (2 <= e <= 3);
     1.8 -    c = (2 <= p1<= 3);
     1.9 +    c = ((2 <= e) <= 3);
    1.10 +    c = ((2 <= p1) <= 3);
    1.11  
    1.12 -    c = (2 >= e >= 3);
    1.13 -    c = (2 >= p1>= 3);
    1.14 +    c = ((2 >= e) >= 3);
    1.15 +    c = ((2 >= p1) >= 3);
    1.16  
    1.17      e[x[3]]=2;
    1.18      e[x[3]]=4;
    1.19 @@ -178,7 +178,7 @@
    1.20      lp.addRow(-LP::INF,3.0*(x[1]+x[2]*2-5*x[3]+12-x[4]/3)+2*x[4]-4,23);
    1.21  
    1.22      lp.addRow(x[1]+x[3]<=x[5]-3);
    1.23 -    lp.addRow(-7<=x[1]+x[3]-12<=3);
    1.24 +    lp.addRow((-7<=x[1]+x[3]-12)<=3);
    1.25      lp.addRow(x[1]<=x[5]);
    1.26  
    1.27      std::ostringstream buf;