]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix structs with array fields
authorJürg Billeter <j@bitron.ch>
Fri, 29 Oct 2010 09:49:06 +0000 (11:49 +0200)
committerJürg Billeter <j@bitron.ch>
Fri, 29 Oct 2010 09:49:06 +0000 (11:49 +0200)
codegen/valaccodestructmodule.vala

index e38c5dae6a1877e44fa0135dfc870bfe8bba3fbb..bf94ec6bc2f603cf9a1f87540b30d337d3e0dcd0 100644 (file)
@@ -262,6 +262,8 @@ public abstract class Vala.CCodeStructModule : CCodeBaseModule {
                                        set_cvalue (this_access, new CCodeIdentifier ("(*self)"));
                                        var ma = new MemberAccess (this_access, f.name);
                                        ma.symbol_reference = f;
+                                       ma.value_type = f.variable_type.copy ();
+                                       visit_member_access (ma);
                                        copy = get_ref_cexpression (f.variable_type, copy, ma, f);
                                        if (copy == null) {
                                                // error case, continue to avoid critical