]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix assignment to struct properties without accessors
authorJürg Billeter <j@bitron.ch>
Sat, 16 Oct 2010 07:27:21 +0000 (09:27 +0200)
committerJürg Billeter <j@bitron.ch>
Tue, 19 Oct 2010 18:52:55 +0000 (20:52 +0200)
Fixes bug 632137.

codegen/valaccodeassignmentmodule.vala

index d802e0b16936dd319b7071f8d079ba3238c3e506..e5232f70df7016ed0c4be3b1e8f1c792dfe2ca19 100644 (file)
@@ -47,10 +47,8 @@ public class Vala.CCodeAssignmentModule : CCodeMemberAccessModule {
 
                CCodeExpression cexpr = (CCodeExpression) assignment.right.ccodenode;
 
-               if (!prop.no_accessor_method) {
-                       if (prop.property_type.is_real_non_null_struct_type ()) {
-                               cexpr = get_address_of_expression (assignment.right, cexpr);
-                       }
+               if (prop.property_type.is_real_non_null_struct_type ()) {
+                       cexpr = get_address_of_expression (assignment.right, cexpr);
                }
 
                if (assignment.operator != AssignmentOperator.SIMPLE) {