X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FGeometry.cc;h=cdc39474e88bac7f639f9c1e5d263fdff02fe430;hb=e7c332a586280ac1ea9d0f993d637802d64c9f87;hp=db1de4067015db4c69919065448f4a31d62fdf0e;hpb=83b39a9a3e366d9bc4baadb7c988b874cfe25a08;p=chaz%2Fopenbox diff --git a/src/Geometry.cc b/src/Geometry.cc index db1de406..cdc39474 100644 --- a/src/Geometry.cc +++ b/src/Geometry.cc @@ -102,10 +102,10 @@ void Rect::setH(unsigned int h) { bool Rect::Intersect(const Rect &r) const { return - (x() < (r.x()+r.w()) ) && - ( (x()+w()) > r.x()) && - (y() < (r.y()+r.h()) ) && - ( (y()+h()) > r.y()); + (x() < (r.x()+(signed)r.w()) ) && + ( (x()+(signed)w()) > r.x()) && + (y() < (r.y()+(signed)r.h()) ) && + ( (y()+(signed)h()) > r.y()); } Rect Rect::Inflate(const unsigned int i) const {