summaryrefslogtreecommitdiff
path: root/tests/dump-boundaries.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@src.gnome.org>2009-01-28 23:27:05 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2009-01-28 23:27:05 +0000
commitfe41694e898487df7b21a8f00f099749bc62e72b (patch)
treea7eec8b2944ab3ba7cef5d7506443e270e0e3a5f /tests/dump-boundaries.c
parent915eeefcb75e57d72e524ee51a4aff4259296b62 (diff)
downloadpango-fe41694e898487df7b21a8f00f099749bc62e72b.tar.gz
Fix warning
svn path=/trunk/; revision=2812
Diffstat (limited to 'tests/dump-boundaries.c')
-rw-r--r--tests/dump-boundaries.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/dump-boundaries.c b/tests/dump-boundaries.c
index 9c890d28..d71aa60f 100644
--- a/tests/dump-boundaries.c
+++ b/tests/dump-boundaries.c
@@ -49,9 +49,9 @@ static void fail (const char *format, ...)
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 @@ dump_text (const char *text)
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 @@ dump_text (const char *text)
attrs[i].is_sentence_end);
g_free (loc);
-
- ++i;
}
g_free (ucs4);