]> git.sesse.net Git - vlc/commitdiff
Fix compiler warning: comparison between signed and unsigned
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 12:36:36 +0000 (12:36 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 21 Oct 2006 12:36:36 +0000 (12:36 +0000)
modules/audio_filter/channel_mixer/mono.c

index f33aa083cb5796098f329bd3161f6a497c05e539..9b0565480cc96646c3b0c63c7244b3af3747b182 100644 (file)
@@ -75,7 +75,7 @@ struct filter_sys_t
 {
     vlc_bool_t b_downmix;
 
-    int i_nb_channels; /* number of int16_t per sample */
+    unsigned int i_nb_channels; /* number of int16_t per sample */
     int i_channel_selected;
     int i_bitspersample;
 
@@ -697,7 +697,7 @@ static unsigned int stereo_to_mono( aout_instance_t * p_aout, aout_filter_t *p_f
             p_out[n] = p_out[n+1] = (p_in[n] + p_in[n+1]) >> 1;
             n++;
         }
-        else if( (n % p_sys->i_nb_channels) == p_sys->i_channel_selected )
+        else if( (n % p_sys->i_nb_channels) == (unsigned int) p_sys->i_channel_selected )
         {
             p_out[n] = p_out[n+1] = p_in[n];
         }