[vala] dova: Fix number literals while bootstrapping
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Fix number literals while bootstrapping
- Date: Wed, 14 Jul 2010 12:20:55 +0000 (UTC)
commit b817ca3e65d39824cc4b047dcc539085200f19e6
Author: Jürg Billeter <j bitron ch>
Date: Wed Jul 14 14:18:53 2010 +0200
dova: Fix number literals while bootstrapping
vala/valaintegerliteral.vala | 6 +++++-
vala/valarealliteral.vala | 8 ++++++--
2 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/vala/valaintegerliteral.vala b/vala/valaintegerliteral.vala
index 31afc93..815c4e3 100644
--- a/vala/valaintegerliteral.vala
+++ b/vala/valaintegerliteral.vala
@@ -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;
}
diff --git a/vala/valarealliteral.vala b/vala/valarealliteral.vala
index 6f327d4..bd4c19a 100644
--- a/vala/valarealliteral.vala
+++ b/vala/valarealliteral.vala
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]