]> git.sesse.net Git - vlc/commitdiff
vout_SDL: fix a warning
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 1 Sep 2009 12:11:23 +0000 (14:11 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 1 Sep 2009 12:11:23 +0000 (14:11 +0200)
modules/video_output/sdl.c

index 3754ae9abdf21f0fb161252537acbff6dbb1c1d9..a886daf2cdc9ef2da4cf15553d2bde675fd244f7 100644 (file)
@@ -650,8 +650,8 @@ static void Manage(vout_display_t *vd)
             const int y = (int64_t)(event.motion.y - sys->place.y) * vd->source.i_height / sys->place.height;
 
             SDL_ShowCursor(1);
-            if (x >= 0 && x < vd->source.i_width &&
-                y >= 0 && y < vd->source.i_height)
+        if (x >= 0 && (unsigned)x < vd->source.i_width &&
+                y >= 0 && (unsigned)y < vd->source.i_height)
                 vout_display_SendEventMouseMoved(vd, x, y);
             break;
         }