[vlc-commits] liveHTTP: fix signedness warnings

Jean-Baptiste Kempf git at videolan.org
Sun Nov 3 18:48:21 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Nov  3 18:47:00 2013 +0100| [e592b87a76b26aa7b07a7dccc4cd25afd1edc4c9] | committer: Jean-Baptiste Kempf

liveHTTP: fix signedness warnings

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

 modules/access_output/livehttp.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access_output/livehttp.c b/modules/access_output/livehttp.c
index c14137c..82539bc 100644
--- a/modules/access_output/livehttp.c
+++ b/modules/access_output/livehttp.c
@@ -500,7 +500,7 @@ static void destroySegment( output_segment_t *segment )
 static uint32_t segmentAmountNeeded( sout_access_out_sys_t *p_sys )
 {
     float duration = .0f;
-    for( unsigned index = 1; index <= vlc_array_count( p_sys->segments_t ) ; index++ )
+    for( unsigned index = 1; (int)index <= vlc_array_count( p_sys->segments_t ); index++ )
     {
         output_segment_t* segment = vlc_array_item_at_index( p_sys->segments_t, vlc_array_count( p_sys->segments_t ) - index );
         duration += segment->f_seglength;
@@ -525,7 +525,7 @@ static bool isFirstItemRemovable( sout_access_out_sys_t *p_sys, uint32_t i_first
     /* Check that segment has been out of playlist for seglenght + (p_sys->i_numsegs * p_sys->i_seglen) amount
      * We check this by calculating duration of the items that replaced first item in playlist
      */
-    for(int index=0; index < i_index_offset; index++ )
+    for( unsigned int index = 0; index < i_index_offset; index++ )
     {
         output_segment_t *segment = vlc_array_item_at_index( p_sys->segments_t, p_sys->i_segment - i_firstseg + index );
         duration += segment->f_seglength;



More information about the vlc-commits mailing list