[vala] codegen: Fix C warning when copying immutable classes
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] codegen: Fix C warning when copying immutable classes
- Date: Tue, 1 Nov 2011 10:12:15 +0000 (UTC)
commit 7a777df57af31d133069d5874d79d77f2d74ba81
Author: Luca Bruno <lucabru src gnome org>
Date: Tue Nov 1 10:54:59 2011 +0100
codegen: Fix C warning when copying immutable classes
codegen/valaccodebasemodule.vala | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodebasemodule.vala b/codegen/valaccodebasemodule.vala
index df7af48..47d3004 100644
--- a/codegen/valaccodebasemodule.vala
+++ b/codegen/valaccodebasemodule.vala
@@ -3929,6 +3929,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
var ccall = new CCodeFunctionCall (new CCodeIdentifier (dup0_func));
ccall.add_argument (cexpr);
result.cvalue = ccall;
+ result.value_type.value_owned = true;
return store_temp_value (result, node);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]