vala r1833 - in trunk: . gobject



Author: juergbi
Date: Sun Oct 12 19:09:00 2008
New Revision: 1833
URL: http://svn.gnome.org/viewvc/vala?rev=1833&view=rev

Log:
2008-10-12  JÃrg Billeter  <j bitron ch>

	* gobject/valaccodemethodbinding.vala:

	Fix code generation for virtual methods returning arrays


Modified:
   trunk/ChangeLog
   trunk/gobject/valaccodemethodbinding.vala

Modified: trunk/gobject/valaccodemethodbinding.vala
==============================================================================
--- trunk/gobject/valaccodemethodbinding.vala	(original)
+++ trunk/gobject/valaccodemethodbinding.vala	Sun Oct 12 19:09:00 2008
@@ -696,7 +696,7 @@
 				var cparam = new CCodeFormalParameter (codegen.get_array_length_cname ("result", dim), "int*");
 				cparam_map.set (codegen.get_param_pos (m.carray_length_parameter_position + 0.01 * dim), cparam);
 				if (carg_map != null) {
-					carg_map.set (codegen.get_param_pos (m.carray_length_parameter_position), new CCodeIdentifier (cparam.name));
+					carg_map.set (codegen.get_param_pos (m.carray_length_parameter_position + 0.01 * dim), new CCodeIdentifier (cparam.name));
 				}
 			}
 		} else if (creturn_type is DelegateType) {



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