[MPlayer-cvslog] r33781 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Wed Jun 29 15:37:05 CEST 2011


Author: ib
Date: Wed Jun 29 15:37:04 2011
New Revision: 33781

Log:
Use unsigned index variable for comparison with array size.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Wed Jun 29 15:33:21 2011	(r33780)
+++ trunk/gui/interface.c	Wed Jun 29 15:37:04 2011	(r33781)
@@ -908,7 +908,7 @@ int guiGetEvent(int type, void *arg)
 
         if (gtkEnableAudioEqualizer) {
             equalizer_t eq;
-            int i, j;
+            unsigned int i, j;
 
             for (i = 0; i < FF_ARRAY_ELEMS(gtkEquChannels); i++) {
                 for (j = 0; j < FF_ARRAY_ELEMS(*gtkEquChannels); j++) {
@@ -1306,7 +1306,7 @@ void *gtkSet(int cmd, float fparam, void
             if (guiInfo.afilter)
                 af_control_any_rev(guiInfo.afilter, AF_CONTROL_EQUALIZER_GAIN | AF_CONTROL_SET, &tmp);
         } else {
-            int i;
+            unsigned int i;
 
             memset(gtkEquChannels, 0, sizeof(gtkEquChannels));
 


More information about the MPlayer-cvslog mailing list