diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2012-01-23 13:06:41 +0000 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-01-24 16:29:04 +0100 |
commit | db24865d6b60351d72f5b8f47103d6d0a6c63b2e (patch) | |
tree | bcd99b61cf9b0b953ebfce1629e1bc1bc1008c8a | |
parent | a8408cfd68cd5e7cdb0b8a83e107d9a0d828e4bd (diff) | |
download | pygobject-db24865d6b60351d72f5b8f47103d6d0a6c63b2e.tar.gz |
g_instance_init: cast to PyGObject * as needed
This squashes a compiler warning.
https://bugzilla.gnome.org/show_bug.cgi?id=668497
-rw-r--r-- | gi/_gobject/gobjectmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |