}
public CCodeExpression? try_cast_value_to_type (CCodeExpression ccodeexpr, DataType from, DataType to, Expression? expr = null) {
- if (from == null || gvalue_type == null || from.data_type != gvalue_type || get_ccode_type_id (to) == "") {
+ if (from == null || gvalue_type == null || from.data_type != gvalue_type || to.data_type == gvalue_type || get_ccode_type_id (to) == "") {
return null;
}
structs/bug654646.vala \
structs/bug654753.vala \
structs/bug656693.vala \
+ structs/bug658048.vala \
delegates/delegates.vala \
delegates/bug539166.vala \
delegates/bug595610.vala \