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

explicitly cast callbacks to reduce the number of warnings during C

2006-10-26  Jürg Billeter  <j@bitron.ch>

	* vala/valacodegenerator.vala: explicitly cast callbacks to reduce the
	  number of warnings during C compilation

svn path=/trunk/; revision=155
parent 0577d6b8
2006-10-26 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: explicitly cast callbacks to reduce the
number of warnings during C compilation
2006-10-26 Jürg Billeter <j@bitron.ch>
* vala/valacodegenerator.vala: convert integer to pointer for generic
......
......@@ -2771,6 +2771,8 @@ public class Vala.CodeGenerator : CodeVisitor {
ccall.add_argument (cexpr);
cexpr = ccall;
}
} else if (param.type_reference.data_type is Callback) {
cexpr = new CCodeCastExpression (cexpr, param.type_reference.data_type.get_cname ());
} else if (param.type_reference.data_type == null
&& arg.static_type.data_type is Struct) {
/* convert integer to pointer if this is a generic method parameter */
......
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