]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix GVariant to array conversion in async methods
authorJürg Billeter <j@bitron.ch>
Sun, 3 Oct 2010 17:26:53 +0000 (19:26 +0200)
committerJürg Billeter <j@bitron.ch>
Sun, 3 Oct 2010 17:32:15 +0000 (19:32 +0200)
codegen/valaccodebasemodule.vala

index 91789d04cc1654ecb85a89511f28c628b3fcf1ee..0be274592c7f2f84ce3a6efa693feddef023632c 100644 (file)
@@ -4658,9 +4658,9 @@ public class Vala.CCodeBaseModule : CodeGenerator {
                                var temp_decl = get_temp_variable (int_type, false, expr);
                                temp_vars.add (temp_decl);
 
-                               ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, new CCodeIdentifier (temp_decl.name)));
+                               ccall.add_argument (new CCodeUnaryExpression (CCodeUnaryOperator.ADDRESS_OF, get_variable_cexpression (temp_decl.name)));
                                cfunc.add_parameter (new CCodeFormalParameter (get_array_length_cname ("result", dim), "int*"));
-                               expr.append_array_size (new CCodeIdentifier (temp_decl.name));
+                               expr.append_array_size (get_variable_cexpression (temp_decl.name));
                        }
                }