From e550755f3dc13f11a9d956bb9b52294ea33c8da6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 2 Mar 2010 17:47:13 +0000 Subject: [PATCH] text-field: Cast GString->len to integer before printing The compiler will warn on 64bit architectures when using %d for printing a gsize field. http://bugzilla.openedhand.com/show_bug.cgi?id=2019 --- tests/interactive/test-text-field.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/interactive/test-text-field.c b/tests/interactive/test-text-field.c index 48e591e36..bc075e51d 100644 --- a/tests/interactive/test-text-field.c +++ b/tests/interactive/test-text-field.c @@ -117,7 +117,10 @@ on_captured_event (ClutterText *text, g_string_append (str, buf); - g_debug ("added '%s' to '%s' (len:%d)", buf, str->str, str->len); + g_print ("added '%s' to '%s' (len:%d)", + buf, + str->str, + (int) str->len); attrs = pango_attr_list_new ();