[vala] Avoid conflicts for internal array size variables



commit cbf48b1524dcc7f5ac38a49cd799328dc50db5a5
Author: Jürg Billeter <j bitron ch>
Date:   Mon Mar 22 21:27:08 2010 +0100

    Avoid conflicts for internal array size variables
    
    Fixes bug 570547.

 codegen/valaccodearraymodule.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/codegen/valaccodearraymodule.vala b/codegen/valaccodearraymodule.vala
index 568e462..df8ee4d 100644
--- a/codegen/valaccodearraymodule.vala
+++ b/codegen/valaccodearraymodule.vala
@@ -357,7 +357,7 @@ internal class Vala.CCodeArrayModule : CCodeMethodCallModule {
 	}
 
 	public override string get_array_size_cname (string array_cname) {
-		return "%s_size".printf (array_cname);
+		return "_%s_size_".printf (array_cname);
 	}
 
 	public override CCodeExpression get_array_size_cexpression (Expression array_expr) {



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