diff options
author | wuestholz <unknown> | 2011-08-11 18:08:16 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2011-08-11 18:08:16 +0200 |
commit | 55b14d3c10686585c6a205974e742d5a67fe7d07 (patch) | |
tree | 76c1260b83bf9ed37e493307ec6c14728a2eb8c1 /Dafny/Printer.cs | |
parent | 5ad331f94647b4fac965992d9231abc9a4220946 (diff) |
Dafny: Fixed a bug in the printer that led to a stack overflow.
Diffstat (limited to 'Dafny/Printer.cs')
-rw-r--r-- | Dafny/Printer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Dafny/Printer.cs b/Dafny/Printer.cs index 63b5f926..34fcb740 100644 --- a/Dafny/Printer.cs +++ b/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 ? ")" : "");
|