]> git.sesse.net Git - vlc/commitdiff
Mod: use unsigned when needed
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Aug 2009 08:42:08 +0000 (10:42 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Aug 2009 08:53:52 +0000 (10:53 +0200)
modules/demux/mod.c

index 745e2673c326014ba357692a814028e1e9c7106f..7569469ca4f46cb3b547fb0640bd65313acf7cf0 100644 (file)
@@ -407,7 +407,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
         if( i_num_instruments )
         {
             i_temp_index = 0;
-            for( int i = 0; i < i_num_instruments && i_temp_index < sizeof(psz_temp); i++ )
+            for( unsigned i = 0; i < i_num_instruments && i_temp_index < sizeof(psz_temp); i++ )
             {
                 char lBuffer[33];
                 ModPlug_InstrumentName( p_sys->f, i, lBuffer );
@@ -419,7 +419,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
         }
 
         /* Make list of samples */
-        for( int i = 0; i < i_num_samples && i_temp_index < sizeof(psz_temp); i++ )
+        for( unsigned int i = 0; i < i_num_samples && i_temp_index < sizeof(psz_temp); i++ )
         {
             char psz_buffer[33];
             ModPlug_SampleName( p_sys->f, i, psz_buffer );