[vala] dova: Use long/ulong for 64-bit integer literals
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] dova: Use long/ulong for 64-bit integer literals
- Date: Sat, 13 Mar 2010 20:01:37 +0000 (UTC)
commit a8b230854c662ec405ac989a334fc1870d994cc6
Author: Jürg Billeter <j bitron ch>
Date: Sat Mar 13 20:58:36 2010 +0100
dova: Use long/ulong for 64-bit integer literals
vala/valaintegerliteral.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/vala/valaintegerliteral.vala b/vala/valaintegerliteral.vala
index 95fd132..6a84131 100644
--- a/vala/valaintegerliteral.vala
+++ b/vala/valaintegerliteral.vala
@@ -94,6 +94,13 @@ public class Vala.IntegerLiteral : Literal {
} else {
return "long";
}
+ } else if (CodeContext.get ().profile == Profile.DOVA) {
+ // long is 64-bit in Dova profile
+ if (u) {
+ return "ulong";
+ } else {
+ return "long";
+ }
} else {
if (u) {
return "uint64";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]