]> Dogcows Code - chaz/openbox/blobdiff - src/Geometry.cc
missing an include
[chaz/openbox] / src / Geometry.cc
index db1de4067015db4c69919065448f4a31d62fdf0e..cdc39474e88bac7f639f9c1e5d263fdff02fe430 100644 (file)
@@ -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 {
This page took 0.02308 seconds and 4 git commands to generate.