projects
/
platform
/
upstream
/
pango.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
915eeef
)
Fix warning
author
Behdad Esfahbod
<behdad@src.gnome.org>
Wed, 28 Jan 2009 23:27:05 +0000
(23:27 +0000)
committer
Behdad Esfahbod
<behdad@src.gnome.org>
Wed, 28 Jan 2009 23:27:05 +0000
(23:27 +0000)
svn path=/trunk/; revision=2812
tests/dump-boundaries.c
patch
|
blob
|
history
diff --git
a/tests/dump-boundaries.c
b/tests/dump-boundaries.c
index
9c890d2
..
d71aa60
100644
(file)
--- 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);