Browse Source

Fixed bug that could cause variable names to be used twice, resulting in a crash in DeclareVariable step. Closes #222.

pull/252/head
Daniel Grunwald 15 years ago
parent
commit
b9109469af
  1. 2
      ICSharpCode.Decompiler/Ast/NameVariables.cs

2
ICSharpCode.Decompiler/Ast/NameVariables.cs

@ -139,7 +139,7 @@ namespace ICSharpCode.Decompiler.Ast @@ -139,7 +139,7 @@ namespace ICSharpCode.Decompiler.Ast
typeNames.Add(nameWithoutDigits, number - 1);
}
int count = ++typeNames[nameWithoutDigits];
if (count > 1) {
if (count != 1) {
return nameWithoutDigits + count.ToString();
} else {
return nameWithoutDigits;

Loading…
Cancel
Save