diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-02 19:54:02 +0100 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-02 19:54:02 +0100 |
commit | c8da02f7bf7fcce918117d5a507360fab1bbd2d7 (patch) | |
tree | fb5ee668491d0c6f20a5814c2d03167f42f6bcf4 /Source/Provers/SMTLib/SMTLibLineariser.cs | |
parent | fc196de27a54c5d1f83afda43bcedc4bfa18010f (diff) |
Get Boogie and GPUVerify to compile and run with Mono
Diffstat (limited to 'Source/Provers/SMTLib/SMTLibLineariser.cs')
-rw-r--r-- | Source/Provers/SMTLib/SMTLibLineariser.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Provers/SMTLib/SMTLibLineariser.cs b/Source/Provers/SMTLib/SMTLibLineariser.cs index 635280d1..0a0e37a2 100644 --- a/Source/Provers/SMTLib/SMTLibLineariser.cs +++ b/Source/Provers/SMTLib/SMTLibLineariser.cs @@ -563,7 +563,7 @@ namespace Microsoft.Boogie.SMTLib if (node.Type.BvBits % 8 == 0) {
wr.Write("#x");
for (var pos = node.Type.BvBits / 8 - 1; pos >= 0; pos--) {
- var k = pos < bytes.Length ? bytes[pos] : 0;
+ var k = pos < bytes.Length ? bytes[pos] : (byte)0;
wr.Write(hex[k >> 4]);
wr.Write(hex[k & 0xf]);
}
@@ -571,7 +571,7 @@ namespace Microsoft.Boogie.SMTLib wr.Write("#b");
for (var pos = node.Type.BvBits - 1; pos >= 0; pos--) {
var i = pos >> 3;
- var k = i < bytes.Length ? bytes[i] : 0;
+ var k = i < bytes.Length ? bytes[i] : (byte)0;
wr.Write((k & (1 << (pos & 7))) == 0 ? '0' : '1');
}
}
|