2008-08-06 Jürg Billeter <j@bitron.ch>
* gobject/valaccodegenerator.vala:
Fix crash when using foreach with stacked arrays, fixes bug 546450
svn path=/trunk/; revision=1736
* gobject/valaccodegenerator.vala:
+ Fix crash when using foreach with stacked arrays, fixes bug 546450
+
+2008-08-06 Jürg Billeter <j@bitron.ch>
+
+ * gobject/valaccodegenerator.vala:
+
Fix crash when using VAPI properties outside of a class
2008-08-05 Thijs Vermeir <thijsvermeir@gmail.com>
/* only check for null if the containers elements are of reference-type */
CCodeBinaryExpression ccond;
- if (array_type.element_type.data_type.is_reference_type ()) {
+ if (array_type.element_type.is_reference_type_or_type_parameter ()) {
var ccond_term1 = new CCodeBinaryExpression (CCodeBinaryOperator.EQUALITY, array_len, new CCodeConstant ("-1"));
var ccond_term2 = new CCodeBinaryExpression (CCodeBinaryOperator.INEQUALITY, new CCodeElementAccess (new CCodeIdentifier (collection_backup.name), new CCodeIdentifier (it_name)), new CCodeConstant ("NULL"));
var ccond_term = new CCodeBinaryExpression (CCodeBinaryOperator.AND, ccond_term1, ccond_term2);