[Telepathy-commits] [telepathy-idle/master] Fixed signedness warning in a test

Will Thompson will.thompson at collabora.co.uk
Wed Sep 24 02:47:08 PDT 2008


---
 tests/test-ctcp-tokenize.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/test-ctcp-tokenize.c b/tests/test-ctcp-tokenize.c
index e7eb811..6421724 100644
--- a/tests/test-ctcp-tokenize.c
+++ b/tests/test-ctcp-tokenize.c
@@ -13,7 +13,7 @@ int main() {
 	gchar **tokens = idle_ctcp_decode(test_str);
 
 	const gchar *should_be[] = {"foo", " fo bar", "bar\001\002\003baz", "for every foo there is \001 bar\\", NULL};
-	for (int i = 0; i < (sizeof(should_be) / sizeof(should_be[0])); i++) {
+	for (guint i = 0; i < (sizeof(should_be) / sizeof(should_be[0])); i++) {
 		if (tp_strdiff(tokens[i], should_be[i])) {
 			fprintf(stderr, "Should be \"%s\", is \"%s\"\n", g_strescape(should_be[i], NULL), g_strescape(tokens[i], NULL));
 			fail = TRUE;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list