Commit 1ed98e02 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter
Browse files

correct bracketing in cast expressions

2007-03-10  Jürg Billeter  <j@bitron.ch>

	* ccode/valaccodecastexpression.vala: correct bracketing in cast
	  expressions

svn path=/trunk/; revision=233
parent 5d829805
2007-03-10 Jürg Billeter <j@bitron.ch>
* ccode/valaccodecastexpression.vala: correct bracketing in cast
expressions
2007-03-10 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: support interface properties and signals,
......
......@@ -42,10 +42,11 @@ public class Vala.CCodeCastExpression : CCodeExpression {
}
public override void write (CCodeWriter! writer) {
writer.write_string ("(");
writer.write_string ("((");
writer.write_string (type_name);
writer.write_string (") ");
inner.write (writer);
writer.write_string (")");
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment