From: Jürg Billeter Date: Tue, 5 May 2009 21:20:27 +0000 (+0200) Subject: Fix handling of numeric types in symbol resolver X-Git-Tag: 0.7.2~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=744e341fd2bad78e87b76b303f03599586f31f56;p=thirdparty%2Fvala.git Fix handling of numeric types in symbol resolver --- diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala index d77c77aac..f5be4211f 100644 --- a/vala/valasymbolresolver.vala +++ b/vala/valasymbolresolver.vala @@ -289,11 +289,12 @@ public class Vala.SymbolResolver : CodeVisitor { type = new ObjectType ((Interface) sym); } else if (sym is Struct) { var st = (Struct) sym; - if (st.is_boolean_type ()) { + // attributes are not processed yet, access them directly + if (st.get_attribute ("BooleanType") != null) { type = new BooleanType (st); - } else if (st.is_integer_type ()) { + } else if (st.get_attribute ("IntegerType") != null) { type = new IntegerType (st); - } else if (st.is_floating_type ()) { + } else if (st.get_attribute ("FloatingType") != null) { type = new FloatingType (st); } else { type = new StructValueType (st);