Parcourir la source

Fix signedness comparison warning

    warning: comparison of integer expressions of different signedness:
    ‘int’ and ‘unsigned int’ [-Wsign-compare]
Eivind Uggedal il y a 3 ans
Parent
commit
666de6154e
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/display/x11/DisplayManagerX11.cpp

+ 2 - 2
src/display/x11/DisplayManagerX11.cpp

@@ -192,8 +192,8 @@ int DisplayManagerX11::getDisplayFromPoint(int x, int y)
       goto done;
 
     matches = x >= crtc->x && y >= crtc->y &&
-              x < crtc->x + crtc->width &&
-              y < crtc->y + crtc->height;
+              x < crtc->x + (int)crtc->width &&
+              y < crtc->y + (int)crtc->height;
 
   done:
     if (crtc)