summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2009-12-21 04:01:03 +0100
committerJavier Jardón <jjardon@gnome.org>2010-01-04 10:43:32 +0100
commitc1cddb2b24014abb50633fe7081b8ad94d111508 (patch)
tree210fe1756f3ff2c830e9c7a25e8609454cf6a27f
parentd8adf58d387bce760b75459193cee6ed48c0e9ea (diff)
downloadgtk+-c1cddb2b24014abb50633fe7081b8ad94d111508.tar.gz
Fix compilation warning: use the correct conversion specifier
Use G_GSIZE_FORMAT instead of %i The warning was added in commit ba651d4022ed4dceb6ad7394adcb0ff6c8006581
-rw-r--r--demos/testpixbuf-color.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/demos/testpixbuf-color.c b/demos/testpixbuf-color.c
index 9eb4ec5e08..78fa939289 100644
--- a/demos/testpixbuf-color.c
+++ b/demos/testpixbuf-color.c
@@ -84,7 +84,9 @@ save_image_verify (const gchar *filename, GError **error)
/* decode base64 */
icc_profile = (gchar *) g_base64_decode (option, &len);
if (len != ICC_PROFILE_SIZE) {
- *error = g_error_new (1, 0, "profile length invalid, got %i", len);
+ *error = g_error_new (1, 0,
+ "profile length invalid, got %" G_GSIZE_FORMAT,
+ len);
g_file_set_contents ("error.icc", icc_profile, len, NULL);
goto out;
}