You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2016/11/25 11:07:24 UTC
[19/26] lucenenet git commit: Fixed bug in assert statement that was
causing it to incorrectly fail
Fixed bug in assert statement that was causing it to incorrectly fail
Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/a0b447fb
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/a0b447fb
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/a0b447fb
Branch: refs/heads/master
Commit: a0b447fb97f1802dbd0ea080a6973933eb2e2fd5
Parents: df3f64d
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Thu Nov 17 22:27:03 2016 +0700
Committer: Shad Storhaug <sh...@shadstorhaug.com>
Committed: Fri Nov 18 01:35:49 2016 +0700
----------------------------------------------------------------------
src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucenenet/blob/a0b447fb/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs b/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs
index b36604e..466cab8 100644
--- a/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs
+++ b/src/Lucene.Net.Spatial/Prefix/ContainsPrefixTreeFilter.cs
@@ -168,7 +168,7 @@ namespace Lucene.Net.Spatial.Prefix
private SmallDocSet GetLeafDocs(Cell leafCell, Bits acceptContains)
{
Debug.Assert(new BytesRef(leafCell.GetTokenBytes()).Equals(termBytes));
- Debug.Assert(leafCell.Equals(lastLeaf));//don't call for same leaf again
+ Debug.Assert(!leafCell.Equals(lastLeaf));//don't call for same leaf again
lastLeaf = leafCell;
if (termsEnum == null)