[vala] codegen: Fix structs with array fields
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Fix structs with array fields
- Date: Fri, 29 Oct 2010 09:49:30 +0000 (UTC)
commit 4412b4dae24135f6410002a72658b1e289dda998
Author: Jürg Billeter <j bitron ch>
Date: Fri Oct 29 11:49:06 2010 +0200
codegen: Fix structs with array fields
codegen/valaccodestructmodule.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodestructmodule.vala b/codegen/valaccodestructmodule.vala
index e38c5da..bf94ec6 100644
--- a/codegen/valaccodestructmodule.vala
+++ b/codegen/valaccodestructmodule.vala
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]