diff options
author | rustanleino <unknown> | 2010-01-28 19:09:49 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2010-01-28 19:09:49 +0000 |
commit | 7fe28b7c23ffd6a458975a117531bdfea6012177 (patch) | |
tree | 5074fb742425ffebc01981f39552bf232bce1459 /Source/Dafny/Printer.ssc | |
parent | 797a819fd618ef3e0a3f44c5ac0eda5d018a0999 (diff) |
Dafny: Added support for big integers.
Diffstat (limited to 'Source/Dafny/Printer.ssc')
-rw-r--r-- | Source/Dafny/Printer.ssc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Dafny/Printer.ssc b/Source/Dafny/Printer.ssc index d676c942..d0a6b3c9 100644 --- a/Source/Dafny/Printer.ssc +++ b/Source/Dafny/Printer.ssc @@ -7,6 +7,7 @@ using System; using System.IO;
using System.Collections.Generic;
using Microsoft.Contracts;
+using System.Numerics;
using Bpl = Microsoft.Boogie;
namespace Microsoft.Dafny {
@@ -503,7 +504,7 @@ namespace Microsoft.Dafny { } else if (e.Value is bool) {
wr.Write((bool)e.Value ? "true" : "false");
} else {
- wr.Write((int)e.Value);
+ wr.Write((BigInteger)e.Value);
}
} else if (expr is ThisExpr) {
|