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

Filip Roséen filip at atch.se
Mon Feb 20 14:53:50 CET 2017


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.
---
 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 29b4440f60..f8875846cc 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;;
-- 
2.11.1



More information about the vlc-devel mailing list