[vala] D-Bus: Fix access to array structs members in static clients
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] D-Bus: Fix access to array structs members in static clients
- Date: Fri, 29 Jan 2010 21:08:50 +0000 (UTC)
commit f5dafc5c1db9d503d2765a72f13dde3e8be860cb
Author: Marc-André Lureau <marcandre lureau gmail com>
Date: Fri Jan 22 20:49:20 2010 +0100
D-Bus: Fix access to array structs members in static clients
Fixes bug 607799.
codegen/valadbusmodule.vala | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valadbusmodule.vala b/codegen/valadbusmodule.vala
index ac6007d..2ceca5f 100644
--- a/codegen/valadbusmodule.vala
+++ b/codegen/valadbusmodule.vala
@@ -136,7 +136,11 @@ internal class Vala.DBusModule : GAsyncModule {
if (id != null) {
return new CCodeIdentifier ("%s_length%d".printf (id.name, dim));
} else if (ma != null) {
- return new CCodeMemberAccess.pointer (ma.inner, "%s_length%d".printf (ma.member_name, dim));
+ if (ma.is_pointer) {
+ return new CCodeMemberAccess.pointer (ma.inner, "%s_length%d".printf (ma.member_name, dim));
+ } else {
+ return new CCodeMemberAccess (ma.inner, "%s_length%d".printf (ma.member_name, dim));
+ }
}
return null;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]