Skip to content

Commit 3729233

Browse files
committed
Fixed infinity loop condition
1 parent 2159545 commit 3729233

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Orm/Xtensive.Orm.Tests.Framework/AssemblyExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ private static IReadOnlyList<Type> FindSegment(Type[] types, string ns, bool isM
105105
var tail = types[endSearchBoundary];
106106
wrongNsFound = tail.FullName.IndexOf(nsWithDot, StringComparison.InvariantCulture) < 0;
107107
}
108-
while (!wrongNsFound || endSearchBoundary < lastItemIndex);
108+
while (!wrongNsFound && endSearchBoundary < lastItemIndex);
109109

110110
for (var tailIndex = endSearchBoundary; tailIndex >= startSearchBoundary; tailIndex--) {
111111
var tail = types[tailIndex];

0 commit comments

Comments
 (0)