diff options
author | wuestholz <unknown> | 2011-08-11 18:08:16 +0200 |
---|---|---|
committer | wuestholz <unknown> | 2011-08-11 18:08:16 +0200 |
commit | f8c4c182902e44befa91cb45f821a8f24d9ec960 (patch) | |
tree | a86183ed7538187ddd2cb7b7e664c1b5045fcc83 /Source | |
parent | f7f5305b1dafc53d56fc7201a45ae544c65ed7f1 (diff) |
Dafny: Fixed a bug in the printer that led to a stack overflow.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Dafny/Printer.cs | 2 |
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 ? ")" : "");
|