vala r850 - in trunk: . gobject



Author: juergbi
Date: Fri Jan 18 15:52:46 2008
New Revision: 850
URL: http://svn.gnome.org/viewvc/vala?rev=850&view=rev

Log:
2008-01-18  Juerg Billeter  <j bitron ch>

	* gobject/valaccodegeneratormethod.vala: fix methods with ref array
	  parameters, based on patch by Hans Vercammen, fixes bug 510418


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

Modified: trunk/gobject/valaccodegeneratormethod.vala
==============================================================================
--- trunk/gobject/valaccodegeneratormethod.vala	(original)
+++ trunk/gobject/valaccodegeneratormethod.vala	Fri Jan 18 15:52:46 2008
@@ -180,7 +180,7 @@
 				var arr = (Array) param.type_reference.data_type;
 				
 				var length_ctype = "int";
-				if (param.type_reference.is_out) {
+				if (param.type_reference.is_out || param.type_reference.is_ref) {
 					length_ctype = "int*";
 				}
 				
@@ -466,7 +466,7 @@
 					var arr = (Array) param.type_reference.data_type;
 					
 					var length_ctype = "int";
-					if (param.type_reference.is_out) {
+					if (param.type_reference.is_out || param.type_reference.is_ref) {
 						length_ctype = "int*";
 					}
 					



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