pango r2812 - trunk/tests



Author: behdad
Date: Wed Jan 28 23:27:05 2009
New Revision: 2812
URL: http://svn.gnome.org/viewvc/pango?rev=2812&view=rev

Log:
Fix warning

Modified:
   trunk/tests/dump-boundaries.c

Modified: trunk/tests/dump-boundaries.c
==============================================================================
--- trunk/tests/dump-boundaries.c	(original)
+++ trunk/tests/dump-boundaries.c	Wed Jan 28 23:27:05 2009
@@ -49,9 +49,9 @@
 static void
 dump_text (const char *text)
 {
-  int len;
+  unsigned int len;
   PangoLogAttr *attrs;
-  int i;
+  unsigned int i;
   gunichar *ucs4;
 
   if (!g_utf8_validate (text, -1, NULL))
@@ -69,8 +69,7 @@
 
   ucs4 = g_utf8_to_ucs4 (text, -1, NULL, NULL, NULL);
 
-  i = 0;
-  while (i <= len)
+  for (i = 0; i < len + 1; i++)
     {
       char buf[7] = { '\0', };
       char *loc;
@@ -101,8 +100,6 @@
 	       attrs[i].is_sentence_end);
 
       g_free (loc);
-
-      ++i;
     }
 
   g_free (ucs4);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]