[vala] Fix virtual methods returning structs
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix virtual methods returning structs
- Date: Wed, 16 Sep 2009 16:22:07 +0000 (UTC)
commit 1b788e43775b1f042b5737411e9d7735dddcc73e
Author: Jürg Billeter <j bitron ch>
Date: Wed Sep 16 18:21:37 2009 +0200
Fix virtual methods returning structs
codegen/valaccodemethodmodule.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodmodule.vala b/codegen/valaccodemethodmodule.vala
index d60c8d9..c6fa033 100644
--- a/codegen/valaccodemethodmodule.vala
+++ b/codegen/valaccodemethodmodule.vala
@@ -88,7 +88,7 @@ internal class Vala.CCodeMethodModule : CCodeStructModule {
var cparam = new CCodeFormalParameter ("result", m.return_type.get_cname () + "*");
cparam_map.set (get_param_pos (-3), cparam);
if (carg_map != null) {
- carg_map.set (get_param_pos (-3), get_variable_cexpression (cparam.name));
+ carg_map.set (get_param_pos (-3), get_result_cexpression ());
}
} else if (!m.no_array_length && m.return_type is ArrayType) {
// return array length if appropriate
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]