[vlc-commits] input: fix vlc_array_count sign

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:38:31 2017 +0100| [be2b26f7cc530dde8faedf606fbd12645b30a2cb] | committer: Thomas Guillem

input: fix vlc_array_count sign

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

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

diff --git a/src/input/input.c b/src/input/input.c
index cfd0e50..002962e 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2290,9 +2290,9 @@ InputStreamHandleAnchor( input_source_t *source, stream_t **stream,
         free( id );
     }
 
-    int remaining = vlc_array_count( &identifiers );
+    size_t remaining = vlc_array_count( &identifiers );
 
-    for( int i = 0; i < remaining; ++i )
+    for( size_t i = 0; i < remaining; ++i )
         free( vlc_array_item_at_index( &identifiers, i ) );
 
     vlc_array_clear( &identifiers );



More information about the vlc-commits mailing list