From cd9efb5678d6c3d1a5edd8e4b8e549c434f54529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Srbeck=C3=BD?= Date: Wed, 16 Feb 2011 01:17:53 +0000 Subject: [PATCH] Fixed infinite loop in AstComparer --- ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs b/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs index ab74a4fc5a..61d6fd4f1d 100644 --- a/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs +++ b/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs @@ -31,6 +31,8 @@ namespace ICSharpCode.NRefactory.CSharp bool? result = true; while (result != false && (child1 != null || child2 != null)) { result &= AreEqual(child1, child2); + child1 = child1.NextSibling; + child2 = child2.NextSibling; } if (nodeTypesWithoutExtraInfo.Contains(nodeType)) return result;