[perl-Glib-Object-Introspection] Use G_GSIZE_FORMAT instead of %d for printing a gtype



commit 27d1a90f68011ea0f4fd16e018cf79285b4dec37
Author: Emmanuel Rodriguez <emmanuel rodriguez gmail com>
Date:   Mon Apr 2 08:47:52 2012 +0200

    Use G_GSIZE_FORMAT instead of %d for printing a gtype
    
    This fixes the warning:
    
    GObjectIntrospection.xs:555:3: warning: format â%dâ expects type âintâ, but argument 3 has type âGTypeâ

 GObjectIntrospection.xs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/GObjectIntrospection.xs b/GObjectIntrospection.xs
index cef1c62..431c4fa 100644
--- a/GObjectIntrospection.xs
+++ b/GObjectIntrospection.xs
@@ -552,7 +552,7 @@ _install_overrides (class, basename, object_name, target_package)
 		        target_package);
 	klass = g_type_class_peek (gtype);
 	if (!klass)
-		ccroak ("internal problem: can't peek at type class for %s (%d)",
+		ccroak ("internal problem: can't peek at type class for %s (%" G_GSIZE_FORMAT ")",
 		        g_type_name (gtype), gtype);
 	generic_class_init (info, target_package, klass);
 	g_base_info_unref (info);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]