]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Fix inline allocated array fields in instances
authorJürg Billeter <j@bitron.ch>
Sun, 11 Jul 2010 20:03:09 +0000 (22:03 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 11 Jul 2010 20:03:09 +0000 (22:03 +0200)
codegen/valadovaobjectmodule.vala

index 35aadc57e478e41e22081d7515eb6f30188ffac6..15314ac9165bd296524992ceef00c71827384eef 100644 (file)
@@ -127,7 +127,7 @@ internal class Vala.DovaObjectModule : DovaArrayModule {
                                        field_ctype = "volatile " + field_ctype;
                                }
 
-                               instance_priv_struct.add_field (field_ctype, f.get_cname ());
+                               instance_priv_struct.add_field (field_ctype, f.get_cname () + f.field_type.get_cdeclarator_suffix ());
                        }
                }