[vlc-commits] lib/media_list: fix sign warnings

Thomas Guillem git at videolan.org
Thu Feb 23 19:56:50 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Feb 23 14:33:36 2017 +0100| [10d5d4f28aa23bb61ef62446706a84a9aae41dac] | committer: Thomas Guillem

lib/media_list: fix sign warnings

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

 lib/media_list.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/media_list.c b/lib/media_list.c
index d40ad1b..05722e3 100644
--- a/lib/media_list.c
+++ b/lib/media_list.c
@@ -393,7 +393,7 @@ int libvlc_media_list_internal_remove_index( libvlc_media_list_t * p_mlist,
 {
     libvlc_media_t * p_md;
 
-    if( index < 0 || index >= vlc_array_count( &p_mlist->items ))
+    if( index < 0 || (size_t) index >= vlc_array_count( &p_mlist->items ))
     {
         libvlc_printerr( "Index out of bounds" );
         return -1;
@@ -420,7 +420,7 @@ libvlc_media_list_item_at_index( libvlc_media_list_t * p_mlist,
 {
     libvlc_media_t * p_md;
 
-    if( index < 0 || index >= vlc_array_count( &p_mlist->items ))
+    if( index < 0 || (size_t) index >= vlc_array_count( &p_mlist->items ))
     {
         libvlc_printerr( "Index out of bounds" );
         return NULL;



More information about the vlc-commits mailing list