summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar wuestholz <unknown>2011-08-11 18:08:16 +0200
committerGravatar wuestholz <unknown>2011-08-11 18:08:16 +0200
commitf8c4c182902e44befa91cb45f821a8f24d9ec960 (patch)
treea86183ed7538187ddd2cb7b7e664c1b5045fcc83 /Source
parentf7f5305b1dafc53d56fc7201a45ae544c65ed7f1 (diff)
Dafny: Fixed a bug in the printer that led to a stack overflow.
Diffstat (limited to 'Source')
-rw-r--r--Source/Dafny/Printer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Dafny/Printer.cs b/Source/Dafny/Printer.cs
index 63b5f926..34fcb740 100644
--- a/Source/Dafny/Printer.cs
+++ b/Source/Dafny/Printer.cs
@@ -733,7 +733,7 @@ namespace Microsoft.Dafny {
i++;
}
} else if (expr is ParensExpression) {
- PrintExtendedExpr((ParensExpression)expr, indent, isRightmost, endWithCloseParen);
+ PrintExtendedExpr(((ParensExpression)expr).E, indent, isRightmost, endWithCloseParen);
} else {
PrintExpression(expr, indent);
wr.WriteLine(endWithCloseParen ? ")" : "");