vala r1801 - in trunk: . gobject



Author: juergbi
Date: Sat Sep 27 11:26:08 2008
New Revision: 1801
URL: http://svn.gnome.org/viewvc/vala?rev=1801&view=rev

Log:
2008-09-27  JÃrg Billeter  <j bitron ch>

	* gobject/valaccodegenerator.vala:

	Fix crash when using sizeof expression for pointers,
	fixes bug 549085


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

Modified: trunk/gobject/valaccodegenerator.vala
==============================================================================
--- trunk/gobject/valaccodegenerator.vala	(original)
+++ trunk/gobject/valaccodegenerator.vala	Sat Sep 27 11:26:08 2008
@@ -3360,7 +3360,7 @@
 
 	public override void visit_sizeof_expression (SizeofExpression expr) {
 		var csizeof = new CCodeFunctionCall (new CCodeIdentifier ("sizeof"));
-		csizeof.add_argument (new CCodeIdentifier (expr.type_reference.data_type.get_cname ()));
+		csizeof.add_argument (new CCodeIdentifier (expr.type_reference.get_cname ()));
 		expr.ccodenode = csizeof;
 	}
 



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