[vala/wip/effectfree: 3/12] codegen: Unset array_size_cvalue in load_variable



commit 07966b431601b10490e69d33fde8172c7b3ef2bc
Author: Luca Bruno <lucabru src gnome org>
Date:   Wed Jun 15 12:29:19 2011 +0200

    codegen: Unset array_size_cvalue in load_variable

 codegen/valaccodememberaccessmodule.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodememberaccessmodule.vala b/codegen/valaccodememberaccessmodule.vala
index 4387a32..443992f 100644
--- a/codegen/valaccodememberaccessmodule.vala
+++ b/codegen/valaccodememberaccessmodule.vala
@@ -689,6 +689,7 @@ public abstract class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
 					result.array_length_cvalues[dim - 1] = new CCodeCastExpression (result.array_length_cvalues[dim - 1], "gint");
 				}
 			}
+			result.array_size_cvalue = null;
 		} else if (delegate_type != null) {
 			if (!delegate_type.delegate_symbol.has_target || variable.no_delegate_target) {
 				result.delegate_target_cvalue = new CCodeConstant ("NULL");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]