diff options
author | Jürg Billeter <j@bitron.ch> | 2012-06-14 14:26:33 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2012-06-23 17:34:33 +0200 |
commit | cf25dab2db539d77c562053a8fd39600d22a6788 (patch) | |
tree | 153fa559692307f928f0e5af80ea9f2a4561f35d | |
parent | f29fc4e57ab3522ee23bfb1cbb010b4ac50a39f1 (diff) | |
download | vala-cf25dab2db539d77c562053a8fd39600d22a6788.tar.gz |
codegen: Fix .begin on async methods returning structs
-rw-r--r-- | codegen/valaccodemethodcallmodule.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala index fa3f727f6..5eff2803a 100644 --- a/codegen/valaccodemethodcallmodule.vala +++ b/codegen/valaccodemethodcallmodule.vala @@ -616,6 +616,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule { } } + if (async_call == ccall) { + // skip out parameter for .begin() calls + return_result_via_out_param = false; + } + CCodeExpression out_param_ref = null; if (return_result_via_out_param) { |