summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-08-27 11:34:02 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-08-27 11:34:02 +0000
commit30706b9430eac494a9567427c68b4e5a2ef3ec5e (patch)
treecfbb6433b4b39b13845d429a83ca866d4c8f1cc8
parentbac7bd79214a78adb0180b36447474e7ae5649f3 (diff)
downloadpygobject-30706b9430eac494a9567427c68b4e5a2ef3ec5e.tar.gz
Fix compilation warning.
svn path=/trunk/; revision=695
-rw-r--r--ChangeLog5
-rw-r--r--gobject/pygtype.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7285dc8e..a1889836 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-27 Gustavo J. A. M. Carneiro <gjc@gnome.org>
+
+ * gobject/pygtype.c (pyg_type_wrapper_repr): Typecast self->type
+ to (unsigned long int) to fix a compilation warning.
+
2007-08-14 Ed Catmur <ed@catmur.co.uk>
reviewed by: Gustavo J. A. M. Carneiro
diff --git a/gobject/pygtype.c b/gobject/pygtype.c
index a95fd54a..897234a7 100644
--- a/gobject/pygtype.c
+++ b/gobject/pygtype.c
@@ -50,7 +50,7 @@ pyg_type_wrapper_repr(PyGTypeWrapper *self)
const gchar *name = g_type_name(self->type);
g_snprintf(buf, sizeof(buf), "<GType %s (%lu)>",
- name?name:"invalid", self->type);
+ name?name:"invalid", (unsigned long int) self->type);
return PyString_FromString(buf);
}