Commit 6b4e24a5 authored by Raffaele Sandrini's avatar Raffaele Sandrini Committed by Raffaele Sandrini
Browse files

mini fix: remove unnecessray cast in visit_switch_statement to remove an

2007-07-29  Raffaele Sandrini  <raffaele@sandrini.ch>

	* gobject/valacodegenerator.vala: mini fix: remove unnecessray cast in
	  visit_switch_statement to remove an invalid cast GType warning

svn path=/trunk/; revision=412
parent 8fb29e4a
2007-07-29 Raffaele Sandrini <raffaele@sandrini.ch>
* gobject/valacodegenerator.vala: mini fix: remove unnecessray cast in
visit_switch_statement to remove an invalid cast GType warning
2007-07-28 Raffaele Sandrini <raffaele@sandrini.ch>
* vala/parser.y: add check to report an error on invalid method_header
......
......@@ -1277,7 +1277,7 @@ public class Vala.CodeGenerator : CodeVisitor {
if (default_statements != null) {
var cblock = new CCodeBlock ();
foreach (CodeNode body_stmt in default_statements) {
cblock.add_statement ((CCodeStatement) body_stmt.ccodenode);
cblock.add_statement (body_stmt.ccodenode);
}
var cdo = new CCodeDoStatement (cblock, new CCodeConstant ("0"));
......
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