]> git.sesse.net Git - vlc/commitdiff
http: Don't compare unsigned directly and factorize.
authorPierre d'Herbemont <pdherbemont@free.fr>
Thu, 20 Aug 2009 23:56:53 +0000 (01:56 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Thu, 20 Aug 2009 23:58:21 +0000 (01:58 +0200)
The playlist needs to be fixed here not to use signed for its size, but...

modules/control/http/macro.c

index aa1644c465d516968510906bfa0ccebac2652b19..4262d22f56d439954db93b6b1aebc6857c032867 100644 (file)
@@ -408,7 +408,8 @@ static void MacroDo( httpd_file_sys_t *p_args,
                         i_nb_items++;
                     }
 
-                    for( i = 0; i < p_sys->p_playlist->items.i_size; i++ )
+                    size_t size = p_sys->p_playlist->items.i_size;
+                    for( i = 0; i < size; i++ )
                     {
                         size_t j;