[vala] codegen: Fix C code generated for out array arguments in async methods



commit 978b8a13f6e3596359603e6eddb7e37e6353ab4a
Author: Jürg Billeter <j bitron ch>
Date:   Mon Nov 8 08:50:53 2010 +0100

    codegen: Fix C code generated for out array arguments in async methods

 codegen/valaccodemethodcallmodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index c94187c..dd7e499 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -410,7 +410,7 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
 							for (int dim = 1; dim <= array_type.rank; dim++) {
 								var temp_array_length = get_temp_variable (array_length_type);
 								emit_temp_var (temp_array_length);
-								append_array_size (arg, new CCodeIdentifier (temp_array_length.name));
+								append_array_size (arg, get_variable_cexpression (temp_array_length.name));
 								carg_map.set (get_param_pos (param.carray_length_parameter_position + 0.01 * dim), new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_array_sizes (arg).get (dim - 1)));
 							}
 						} else if (param.variable_type is DelegateType) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]