[vlc-commits] oldrc: fix warning
Rémi Denis-Courmont
git at videolan.org
Sun Apr 14 09:18:02 CEST 2019
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Apr 14 10:04:05 2019 +0300| [0fc1c56d66ac45484b4f089da1e3022f4bfb05b3] | committer: Rémi Denis-Courmont
oldrc: fix warning
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0fc1c56d66ac45484b4f089da1e3022f4bfb05b3
---
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