From: Behdad Esfahbod Date: Wed, 28 Jan 2009 23:27:05 +0000 (+0000) Subject: Fix warning X-Git-Tag: 1.23.0~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe41694e898487df7b21a8f00f099749bc62e72b;p=platform%2Fupstream%2Fpango.git Fix warning svn path=/trunk/; revision=2812 --- diff --git a/tests/dump-boundaries.c b/tests/dump-boundaries.c index 9c890d2..d71aa60 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);