]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix C code generated for out array arguments in async methods
authorJürg Billeter <j@bitron.ch>
Mon, 8 Nov 2010 07:50:53 +0000 (08:50 +0100)
committerJürg Billeter <j@bitron.ch>
Mon, 8 Nov 2010 07:50:53 +0000 (08:50 +0100)
codegen/valaccodemethodcallmodule.vala

index c94187cc3b7b5c2d3267829235ca434b12013ff3..dd7e499d0394a1f870857f7b4ac766e93fd8e441 100644 (file)
@@ -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) {