[vlc-commits] input/mrl_helpers: fix warning related to iteration variable

Filip Roséen git at videolan.org
Tue Feb 21 13:54:45 CET 2017


vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Feb 20 14:53:50 2017 +0100| [5596c0d3406bc866ab0b2446f6abe8f2532b1ba2] | committer: Jean-Baptiste Kempf

input/mrl_helpers: fix warning related to iteration variable

Following the changes in 7ecd927 the changed line caused a warning
related to signed vs unsigned integer comparision; this simply silence
that warning by using the now relevant type.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/input/mrl_helpers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/input/mrl_helpers.h b/src/input/mrl_helpers.h
index 29b4440..f887584 100644
--- a/src/input/mrl_helpers.h
+++ b/src/input/mrl_helpers.h
@@ -147,7 +147,7 @@ mrl_FragmentSplit( vlc_array_t** out_items,
     return VLC_SUCCESS;
 
 error:
-    for( int i = 0; i < vlc_array_count( items ); ++i )
+    for( size_t i = 0; i < vlc_array_count( items ); ++i )
         free( vlc_array_item_at_index( items, i ) );
     vlc_array_destroy( items );
     return VLC_EGENERIC;;



More information about the vlc-commits mailing list