From 30706b9430eac494a9567427c68b4e5a2ef3ec5e Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Mon, 27 Aug 2007 11:34:02 +0000 Subject: Fix compilation warning. svn path=/trunk/; revision=695 --- ChangeLog | 5 +++++ gobject/pygtype.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7285dc8..a188983 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-08-27 Gustavo J. A. M. Carneiro + + * gobject/pygtype.c (pyg_type_wrapper_repr): Typecast self->type + to (unsigned long int) to fix a compilation warning. + 2007-08-14 Ed Catmur reviewed by: Gustavo J. A. M. Carneiro diff --git a/gobject/pygtype.c b/gobject/pygtype.c index a95fd54..897234a 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), "", - name?name:"invalid", self->type); + name?name:"invalid", (unsigned long int) self->type); return PyString_FromString(buf); } -- cgit