lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [01/47] lucenenet git commit: Fixed bug in Codecs.SimpleText.SimpleTextDocValuesWriter - changed to long?.GetValueOrDefault() to match Java Lucene.
Date Tue, 11 Oct 2016 18:34:46 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master a57e72058 -> 686b75113


Fixed bug in Codecs.SimpleText.SimpleTextDocValuesWriter - changed to long?.GetValueOrDefault()
to match Java Lucene.


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

Branch: refs/heads/master
Commit: e596a4d388ef9e79154cd43ffa7f09854dc7b653
Parents: 71ff7ee
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Tue Oct 4 18:58:26 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Oct 6 16:39:41 2016 +0700

----------------------------------------------------------------------
 src/Lucene.Net.Codecs/SimpleText/SimpleTextDocValuesWriter.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e596a4d3/src/Lucene.Net.Codecs/SimpleText/SimpleTextDocValuesWriter.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Codecs/SimpleText/SimpleTextDocValuesWriter.cs b/src/Lucene.Net.Codecs/SimpleText/SimpleTextDocValuesWriter.cs
index 7f19a0f..e2bd264 100644
--- a/src/Lucene.Net.Codecs/SimpleText/SimpleTextDocValuesWriter.cs
+++ b/src/Lucene.Net.Codecs/SimpleText/SimpleTextDocValuesWriter.cs
@@ -73,9 +73,9 @@ namespace Lucene.Net.Codecs.SimpleText
             var maxValue = long.MinValue;
             foreach (var n in values)
             {
-                var v = n;
-                minValue = Math.Min(minValue, v.Value); // Added .Value to account for long?
-                maxValue = Math.Max(maxValue, v.Value); // Added .Value to account for long?
+                var v = n.GetValueOrDefault();
+                minValue = Math.Min(minValue, v); // Added .Value to account for long?
+                maxValue = Math.Max(maxValue, v); // Added .Value to account for long?
             }
 
             // write our minimum value to the .dat, all entries are deltas from that


Mime
View raw message