Преглед на файлове

Fix signedness comparison warning

    warning: comparison of integer expressions of different signedness:
    ‘int’ and ‘unsigned int’ [-Wsign-compare]
Eivind Uggedal преди 3 години
родител
ревизия
666de6154e
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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)