From 291faee430b13248a1b97e1ef254b9a468a67ad1 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 28 Oct 2010 18:02:20 +0000 Subject: Fixed a bunch of warnings from gcc 4.4.5 . Most of these are parenthesis missing to make the precedence of && over || obvious. Ah well, why not... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7765 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Tile.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Tile.cxx') diff --git a/src/Fl_Tile.cxx b/src/Fl_Tile.cxx index a211fd673..a747a93ed 100644 --- a/src/Fl_Tile.cxx +++ b/src/Fl_Tile.cxx @@ -52,17 +52,17 @@ void Fl_Tile::position(int oix, int oiy, int newx, int newy) { int R = X+o->w(); if (oix) { int t = p[0]; - if (t == oix || t>oix && Xnewx) X = newx; + if (t == oix || (t>oix && Xnewx) ) X = newx; t = p[1]; - if (t == oix || t>oix && Rnewx) R = newx; + if (t == oix || (t>oix && Rnewx) ) R = newx; } int Y = o->y(); int B = Y+o->h(); if (oiy) { int t = p[2]; - if (t == oiy || t>oiy && Ynewy) Y = newy; + if (t == oiy || (t>oiy && Ynewy) ) Y = newy; t = p[3]; - if (t == oiy || t>oiy && Bnewy) B = newy; + if (t == oiy || (t>oiy && Bnewy) ) B = newy; } o->damage_resize(X,Y,R-X,B-Y); } -- cgit v1.2.3