]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
dova: Fix number literals while bootstrapping
authorJürg Billeter <j@bitron.ch>
Wed, 14 Jul 2010 12:18:53 +0000 (14:18 +0200)
committerJürg Billeter <j@bitron.ch>
Wed, 14 Jul 2010 12:18:53 +0000 (14:18 +0200)
vala/valaintegerliteral.vala
vala/valarealliteral.vala

index 31afc93f14d158d822d89352ca1d76ba196a7104..815c4e308413a8d543f20fc7eeafd355b202f214 100644 (file)
@@ -123,7 +123,11 @@ public class Vala.IntegerLiteral : Literal {
                        }
                }
 
-               value_type = new IntegerType ((Struct) analyzer.root_symbol.scope.lookup (type_name), value, type_name);
+               var st = (Struct) analyzer.root_symbol.scope.lookup (type_name);
+               // ensure attributes are already processed in case of bootstrapping dova-core
+               st.check (analyzer);
+
+               value_type = new IntegerType (st, value, type_name);
 
                return !error;
        }
index 6f327d461dde0d553db1bbd09426cd35f62237a9..bd4c19a41ed04a5027aac3439027e9f0be9f471a 100644 (file)
@@ -1,6 +1,6 @@
 /* valarealliteral.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -77,7 +77,11 @@ public class Vala.RealLiteral : Literal {
 
                checked = true;
 
-               value_type = new FloatingType ((Struct) analyzer.root_symbol.scope.lookup (get_type_name ()));
+               var st = (Struct) analyzer.root_symbol.scope.lookup (get_type_name ());
+               // ensure attributes are already processed in case of bootstrapping dova-core
+               st.check (analyzer);
+
+               value_type = new FloatingType (st);
 
                return !error;
        }