[vala] Fix virtual methods returning structs



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]