[vlc-devel] commit: http: Don't compare unsigned directly and factorize. (Pierre d' Herbemont )

git version control git at videolan.org
Fri Aug 21 02:19:01 CEST 2009


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 01:56:53 2009 +0200| [b61820ee056b401dbd2272e2ff5e8b6cec8d2a18] | committer: Pierre d'Herbemont 

http: Don't compare unsigned directly and factorize.

The playlist needs to be fixed here not to use signed for its size, but...

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

 modules/control/http/macro.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/control/http/macro.c b/modules/control/http/macro.c
index aa1644c..4262d22 100644
--- a/modules/control/http/macro.c
+++ b/modules/control/http/macro.c
@@ -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;
 




More information about the vlc-devel mailing list