vala r1292 - in trunk: . gobject
- From: juergbi svn gnome org
- To: svn-commits-list gnome org
- Subject: vala r1292 - in trunk: . gobject
- Date: Mon, 21 Apr 2008 20:13:52 +0100 (BST)
Author: juergbi
Date: Mon Apr 21 19:13:51 2008
New Revision: 1292
URL: http://svn.gnome.org/viewvc/vala?rev=1292&view=rev
Log:
2008-04-21 Juerg Billeter <j bitron ch>
* gobject/valaccodeinvocationexpressionbinding.vala: fix struct
instance methods, fixes bug 529183
Modified:
trunk/ChangeLog
trunk/gobject/valaccodeinvocationexpressionbinding.vala
Modified: trunk/gobject/valaccodeinvocationexpressionbinding.vala
==============================================================================
--- trunk/gobject/valaccodeinvocationexpressionbinding.vala (original)
+++ trunk/gobject/valaccodeinvocationexpressionbinding.vala Mon Apr 21 19:13:51 2008
@@ -90,8 +90,10 @@
instance_expression_type = ma.inner.static_type;
}
- if (instance_expression_type.data_type is Struct && !((Struct) instance_expression_type.data_type).is_simple_type () && instance_expression_type.data_type != codegen.current_type_symbol) {
- if (instance is CCodeIdentifier) {
+ if (instance_expression_type.data_type is Struct
+ && !((Struct) instance_expression_type.data_type).is_simple_type ()
+ && instance_expression_type.data_type != codegen.current_type_symbol) {
+ if (instance is CCodeIdentifier || instance is CCodeMemberAccess) {
instance = new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, instance);
} else {
// if instance is e.g. a function call, we can't take the address of the expression
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]