[pygobject] g_instance_init: cast to PyGObject * as needed
- From: Tomeu Vizoso <tomeuv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] g_instance_init: cast to PyGObject * as needed
- Date: Tue, 24 Jan 2012 15:30:27 +0000 (UTC)
commit db24865d6b60351d72f5b8f47103d6d0a6c63b2e
Author: Will Thompson <will thompson collabora co uk>
Date: Mon Jan 23 13:06:41 2012 +0000
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/_gobject/gobjectmodule.c b/gi/_gobject/gobjectmodule.c
index ac065a5..7ac31f6 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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]