--- valasvn/gobject/valaccodearraycreationexpressionbinding.vala	2008-07-22 13:34:37.000000000 +0200
+++ vala/gobject/valaccodearraycreationexpressionbinding.vala	2008-07-22 13:29:49.000000000 +0200
@@ -61,6 +61,9 @@ public class Vala.CCodeArrayCreationExpr
 				// add extra item to have array NULL-terminated for all reference types
 				csize = new CCodeBinaryExpression (CCodeBinaryOperator.PLUS, csize, new CCodeConstant ("1"));
 			}
+			
+			// enclose everything into additional parenthesis (see bug #540730)
+			csize = new CCodeParenthesizedExpression (csize);
 
 			if (first) {
 				cexpr = csize;
