[vala] codegen: Fix GVariant to array conversion in async methods
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Fix GVariant to array conversion in async methods
- Date: Sun, 3 Oct 2010 17:28:13 +0000 (UTC)
commit 439d50c50222b654364189de68f1fd1300016559
Author: Jürg Billeter <j bitron ch>
Date: Sun Oct 3 19:26:53 2010 +0200
codegen: Fix GVariant to array conversion in async methods
codegen/valaccodebasemodule.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index 203262f..9b0f5a4 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -4425,9 +4425,9 @@ public class Vala.CCodeBaseModule : CodeGenerator {
var temp_decl = get_temp_variable (int_type, false, expr);
emit_temp_var (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));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]