[vlc-devel] commit: lpcm: Fix a few unsigned comparison warnings. (Pierre d'Herbemont )
git version control
git at videolan.org
Fri Aug 21 01:05:59 CEST 2009
vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Fri Aug 21 00:39:44 2009 +0200| [f8a61a179f1ae723f2787601691123362dbd2297] | committer: Pierre d'Herbemont
lpcm: Fix a few unsigned comparison warnings.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f8a61a179f1ae723f2787601691123362dbd2297
---
modules/codec/lpcm.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/codec/lpcm.c b/modules/codec/lpcm.c
index 97685df..123f002 100644
--- a/modules/codec/lpcm.c
+++ b/modules/codec/lpcm.c
@@ -597,7 +597,7 @@ static int AobHeader( unsigned *pi_rate,
*pi_layout = i_layout1 | ( b_group2_used ? i_layout2 : 0 );
/* */
- for( int i = 0; i < 2; i++ )
+ for( unsigned i = 0; i < 2; i++ )
{
const unsigned *p_aob = i == 0 ? p_aob_group1[i_assignment] :
p_aob_group2[i_assignment];
@@ -607,7 +607,7 @@ static int AobHeader( unsigned *pi_rate,
g[i].b_used = i == 0 || b_group2_used;
if( !g[i].b_used )
continue;
- for( int j = 0; j < g[i].i_channels; j++ )
+ for( unsigned j = 0; j < g[i].i_channels; j++ )
{
g[i].pi_position[j] = 0;
for( int k = 0; pi_vlc_chan_order_wg4[k] != 0; k++ )
@@ -797,9 +797,9 @@ static void AobExtract( aout_buffer_t *p_aout_buffer,
p_block->i_buffer = 0;
break;
}
- for( int n = 0; n < 2; n++ )
+ for( unsigned n = 0; n < 2; n++ )
{
- for( int j = 0; j < g->i_channels && g->b_used; j++ )
+ for( unsigned j = 0; j < g->i_channels && g->b_used; j++ )
{
const int i_src = n * g->i_channels + j;
const int i_dst = n * i_channels + g->pi_position[j];
More information about the vlc-devel
mailing list