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



commit beb158ab97a353967608ac9458374aaa15dcdc9e
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 e3f7f29..b652ecd 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]