You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2015/05/01 01:12:40 UTC

[1/2] lucenenet git commit: fix skip bytes implementation

Repository: lucenenet
Updated Branches:
  refs/heads/master b692fc0d8 -> 27be98ab3


fix skip bytes implementation


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/465f7b9f
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/465f7b9f
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/465f7b9f

Branch: refs/heads/master
Commit: 465f7b9fda5d1d3b403d1d3fd96270a5dea6d943
Parents: b692fc0
Author: Laimonas Simutis <la...@gmail.com>
Authored: Thu Apr 30 14:32:25 2015 -0400
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Thu Apr 30 14:32:25 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Util/Fst/BytesStore.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/465f7b9f/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Util/Fst/BytesStore.cs b/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
index bf81fb5..de949b8 100644
--- a/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
+++ b/src/Lucene.Net.Core/Util/Fst/BytesStore.cs
@@ -541,7 +541,7 @@ namespace Lucene.Net.Util.Fst
 
             public override void SkipBytes(int count)
             {
-                Position = OuterInstance.Position - count;
+                Position = Position - count;
             }
 
             public override void ReadBytes(byte[] b, int offset, int len)


[2/2] lucenenet git commit: fix assert logic

Posted by sy...@apache.org.
fix assert logic


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/27be98ab
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/27be98ab
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/27be98ab

Branch: refs/heads/master
Commit: 27be98ab3c45343bc31761fe25d3845220319580
Parents: 465f7b9
Author: Laimonas Simutis <la...@gmail.com>
Authored: Thu Apr 30 14:32:54 2015 -0400
Committer: Laimonas Simutis <la...@gmail.com>
Committed: Thu Apr 30 14:32:54 2015 -0400

----------------------------------------------------------------------
 src/Lucene.Net.Core/Index/SortedSetDocValuesWriter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/27be98ab/src/Lucene.Net.Core/Index/SortedSetDocValuesWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Core/Index/SortedSetDocValuesWriter.cs b/src/Lucene.Net.Core/Index/SortedSetDocValuesWriter.cs
index 2242790..66ed14f 100644
--- a/src/Lucene.Net.Core/Index/SortedSetDocValuesWriter.cs
+++ b/src/Lucene.Net.Core/Index/SortedSetDocValuesWriter.cs
@@ -200,7 +200,7 @@ namespace Lucene.Net.Index
         {
             AppendingDeltaPackedLongBuffer.Iterator iter = PendingCounts.GetIterator();
 
-            Debug.Assert(maxDoc == Pending.Size(), "MaxDoc: " + maxDoc + ", pending.Size(): " + Pending.Size());
+            Debug.Assert(maxDoc == PendingCounts.Size(), "MaxDoc: " + maxDoc + ", pending.Size(): " + Pending.Size());
 
             for (int i = 0; i < maxDoc; ++i)
             {