[vlc-commits] oldrc: fix warning

Rémi Denis-Courmont git at videolan.org
Sun Apr 14 09:05:44 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 14 10:04:05 2019 +0300| [5c4677186d8d8613515442cea4174b907e9023bb] | committer: Rémi Denis-Courmont

oldrc: fix warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c4677186d8d8613515442cea4174b907e9023bb
---

 modules/control/oldrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/control/oldrc.c b/modules/control/oldrc.c
index 92d0d4b184..a348ef32d5 100644
--- a/modules/control/oldrc.c
+++ b/modules/control/oldrc.c
@@ -1114,7 +1114,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
             if (idx < 0)
                 goto out;
             size_t track_count = vlc_player_GetTrackCount(player, cat);
-            if (idx >= track_count )
+            if ((unsigned)idx >= track_count)
                 goto out;
             struct vlc_player_track const *track =
                 vlc_player_GetTrackAt(player, cat, (size_t)idx);



More information about the vlc-commits mailing list