vala r1449 - in trunk: . gobject



Author: juergbi
Date: Mon May 26 12:30:05 2008
New Revision: 1449
URL: http://svn.gnome.org/viewvc/vala?rev=1449&view=rev

Log:
2008-05-26  Juerg Billeter  <j bitron ch>

	* gobject/valaccodeinvocationexpressionbinding.vala:

	Fix implicit casts for instances in invocation expressions,
	fixes bug 530369


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

Modified: trunk/gobject/valaccodeinvocationexpressionbinding.vala
==============================================================================
--- trunk/gobject/valaccodeinvocationexpressionbinding.vala	(original)
+++ trunk/gobject/valaccodeinvocationexpressionbinding.vala	Mon May 26 12:30:05 2008
@@ -111,8 +111,7 @@
 
 			// parent_symbol may be null for late bound methods
 			if (base_method.parent_symbol != null) {
-				var instance_target_type = ma.value_type.copy ();
-				instance_target_type.data_type = (Typesymbol) base_method.parent_symbol;
+				var instance_target_type = codegen.get_data_type_for_symbol ((Typesymbol) base_method.parent_symbol);
 				instance = codegen.get_implicit_cast_expression (instance, instance_expression_type, instance_target_type);
 			}
 



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