vala r1569 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1569 - in trunk: . gobject
- Date: Thu, 12 Jun 2008 11:36:26 +0000 (UTC)
Author: juergbi
Date: Thu Jun 12 11:36:25 2008
New Revision: 1569
URL: http://svn.gnome.org/viewvc/vala?rev=1569&view=rev
Log:
2008-06-12 JÃrg Billeter <j bitron ch>
* gobject/valaccodedynamicmethodbinding.vala:
Fix gcc warning for D-Bus client methods returning arrays
Modified:
trunk/ChangeLog
trunk/gobject/valaccodedynamicmethodbinding.vala
Modified: trunk/gobject/valaccodedynamicmethodbinding.vala
==============================================================================
--- trunk/gobject/valaccodedynamicmethodbinding.vala (original)
+++ trunk/gobject/valaccodedynamicmethodbinding.vala Thu Jun 12 11:36:25 2008
@@ -353,7 +353,7 @@
block.add_statement (new CCodeExpressionStatement (assign));
// return result->data;
- block.add_statement (new CCodeReturnStatement (new CCodeMemberAccess.pointer (new CCodeIdentifier ("result"), "data")));
+ block.add_statement (new CCodeReturnStatement (new CCodeCastExpression (new CCodeMemberAccess.pointer (new CCodeIdentifier ("result"), "data"), method.return_type.get_cname ())));
} else {
// string arrays or other datatypes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]