Explorar o código

Fix signedness comparison warning

    warning: comparison of integer expressions of different signedness:
    ‘int’ and ‘unsigned int’ [-Wsign-compare]
Eivind Uggedal %!s(int64=3) %!d(string=hai) anos
pai
achega
666de6154e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)