[vlc-commits] projectM: variables signedness fix

Jean-Baptiste Kempf git at videolan.org
Wed May 18 17:41:16 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed May 18 15:53:47 2011 +0200| [921123fd4ce49760c450a7bb4272dd5f929bf2cd] | committer: Jean-Baptiste Kempf

projectM: variables signedness fix

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

 modules/visualization/projectm.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/visualization/projectm.cpp b/modules/visualization/projectm.cpp
index 8491709..8fa2ac3 100644
--- a/modules/visualization/projectm.cpp
+++ b/modules/visualization/projectm.cpp
@@ -135,8 +135,8 @@ struct filter_sys_t
     vlc_mutex_t lock;
     bool  b_quit;
     float *p_buffer;
-    int   i_buffer_size;
-    int   i_nb_samples;
+    unsigned i_buffer_size;
+    unsigned i_nb_samples;
 };
 
 
@@ -248,7 +248,7 @@ static block_t *DoWork( filter_t *p_filter, block_t *p_in_buf )
                                      p_in_buf->i_nb_samples );
 
         const float *p_src = (float*)p_in_buf->p_buffer;
-        for( int i = 0; i < p_sys->i_nb_samples; i++ )
+        for( unsigned i = 0; i < p_sys->i_nb_samples; i++ )
         {
             float v = 0;
             for( int j = 0; j < p_sys->i_channels; j++ )



More information about the vlc-commits mailing list