From db24865d6b60351d72f5b8f47103d6d0a6c63b2e Mon Sep 17 00:00:00 2001 From: Will Thompson Date: Mon, 23 Jan 2012 13:06:41 +0000 Subject: g_instance_init: cast to PyGObject * as needed This squashes a compiler warning. https://bugzilla.gnome.org/show_bug.cgi?id=668497 --- gi/_gobject/gobjectmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gi/_gobject/gobjectmodule.c b/gi/_gobject/gobjectmodule.c index ac065a5e..7ac31f67 100644 --- a/gi/_gobject/gobjectmodule.c +++ b/gi/_gobject/gobjectmodule.c @@ -1070,7 +1070,7 @@ pygobject__g_instance_init(GTypeInstance *instance, /* float the wrapper ref here because we are going to orphan it * so we don't destroy the wrapper. The next call to pygobject_new_full * will take the ref */ - pygobject_ref_float (wrapper); + pygobject_ref_float ((PyGObject *) wrapper); args = PyTuple_New(0); kwargs = PyDict_New(); if (Py_TYPE(wrapper)->tp_init(wrapper, args, kwargs)) -- cgit v1.2.1